p12keys when setting up a service to send iOS notifications).
Zaius.configure()will prompt the user for Push Notification access. While this is often acceptable, sometimes you don't want to prompt the user as the first thing the app does. To change this, pass
requestPermissions: falseas an option to
Zaius.requestPermissions()at some point in the future, or you will not be able to receive Push Notifications. Similarly, the
onRegistercallback will not be called until
onNotificationcallback is called when a Push Notification gets to the phone. By default, the
onNotificationoption sent to
Zaius.configure()does nothing. You can override this by sending a function:
notificationis unfortunately not very strict and is different between iOS and Android.
notificationargument will reliably contain a field called
userInteractionwhich will be
trueif the user has tapped on the notification and
falseotherwise. When in the foreground on iOS, the app will still receive a callback on this function, and the
userInteractionfield will be
onRegistercallback is called when Push Notifications are fully enabled on the phone's side. That is, the callback will be called with a push token that can uniquely identify the phone. Having this token does not necessarily mean the server is capable os sending a notification, but the phone is capable of receiving one.