Notifications
Update Push Token#
Once your app receives a token for your push notification service, the token needs to be provided by calling FlyBuy.Core.updatePushToken(). This allows your app to receive updates to the order information via push notification:
Params#
| Name | Type |
|---|---|
| token | String |
Example#
Handle Remote Notification#
This method is used to handle remote notification and update the order data in the SDK.
Params#
| Name | Type | Example |
|---|---|---|
| data | Obj | {"message_source": "flybuy","order_id": "1","state": "created","customer_state": "arrived","eta_at": "2020-02-01T00:00:00.000Z"} |
Example#
This example provide a full use case of using FCM listener and calling flybuy methods.