dependencies {
implementation('com.google.android.gms:play-services-gcm:17.0.0')
}
// Methods that notify the native code about Google Cloud Messaging interactions
public native void nativeGCMRegisteredForRemoteNotifications(String token);
public native void nativeGCMFailedToRegisterForRemoteNotifications(String errorMessage);
public native void nativeGCMReceivedRemoteNotification(String message);
public void AndroidThunkJava_RegisterForRemoteNotifications()
{
// start IntentService to register this application with Google Cloud Messaging
Intent intent = new Intent(activityContext.getApplicationContext(), RemoteNotificationsRegistrationIntentService.class);
startService(intent);
}
public void AndroidThunkJava_UnregisterForRemoteNotifications()
{
}
public void AndroidThunkJava_RegisterForRemoteNotifications()
{
}
public void AndroidThunkJava_UnregisterForRemoteNotifications()
{
}
bPluginEnabled = true;