Distriqt PushNotification version 6.0.029 I use PushNotificationsHelper in the example folder, there are few issues as below:
For initialize PushNotifications.isSupported return true, but once I call register and it return false again. I ending up commented //PushNotifications.isSupported for each of the call function to make sure it works. Ok, it works and I received registration token.
I use GCM playload, notification field just try to display very simple notification title and body. Ok, I received notification popup in background but when I select the notification, the PushNotificationEvent.NOTIFICATION_SELECTED event won't firing, this the critical issue in my project.
When I use Distriqt playload, data field. I received notification silently when in background, nothing show up (Why?). And I received data dispatched from event PushNotificationEvent.NOTIFICATION this fine. FYI, I enabled service.enableNotificationsWhenActive = true
- The GCM playload format from http://airnativeextensions.com/extension/com.distriqt.PushNotifications#sending
Please read my project setup for the ane extensions included:
- com.distriqt.PushNotifications
- com.distriqt.Core
- com.distriqt.playservices.GCM
- com.distriqt.AndroidSupport
- com.distriqt.playservices.Base
Device tested:
- Mi Note (Android version 6.0.1)
- Samsung Galaxy S3 (Android version 4.1.2)
Can anyone please advice where do i make mistake or it's the native extension issue? Thanks in advance.