You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alert notifications, set subscription, send notifications, and fixes
Moved SDK project from Eclipse to Android Studio.
Features
Added option to display an alert dialog when the user is in your app.
Also option to allow showing in the notification area too.
Can now specify a different activity or a broadcast receiver to be opened instead of the launcher activity by defining a com.onesignal.NotificationOpened.RECEIVE action to receive the event.
Added postNotification to make it easier to send notifications from user to user or schedule a future one to the same device.
Added setSubscription method to allow unsubscribing from notifications.
Added error detection for the following:
Invalid OneSignal AppId format or example id being used.
Invalid Google Project number format.
Old revision or missing Android Support Library v4.
Missing Google Play services library.
Now logs returned JSON from OneSignal calls if LOG_LEVEL.INFO is set or higher.
Fixes
Fixed crash that could happen when OneSignal.onPaused() is called before OneSignal.init()
Now retries up to 5 times to get a Google Registration id from Google to subscribe for push notifications.
Now accounts for daylight saving when detecting the timezone.