This plugin is only for native android and except notification all the other services are removed from the library. OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native Android or Amazon app with OneSignal.
See OneSignal's Android Native SDK Setup Guide for documentation.
See OneSignal's Android Native SDK API page for a list of all available methods.
See this repository's release tags for a complete change log of every released version.
- Onesignal class, setRemoteNotificationReceivedHandler() method changed as public to receive Notification directly to the app.
- OSNotificationController class, In the Constructor method notificationJob(OSNotificationGenerationJob) set as null to avoid pushing notification directly from Onesignal library.
- OSNotificationController class, In the processNotification() method while set modified notification check notificationJob(OSNotificationGenerationJob) is not null to avoid NullPointerException.
- GenerateNotification class, In the fromJsonPayload() method showNotification() method was commented/removed to avoid showing notification directly from Onesignal library.
To make things easier, we have published demo projects in the /app
folder of this repository.
- Tested from Android 4.0.3 (API level 15) to Android 11 (30)