Notifications
#
Update Push TokenOnce 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:
#
ParamsName | Type |
---|---|
token | String |
#
Example#
Handle Remote NotificationThis method is used to handle remote notification and update the order data in the SDK.
#
ParamsName | Type | Example |
---|---|---|
data | Obj | {"message_source": "flybuy","order_id": "1","state": "created","customer_state": "arrived","eta_at": "2020-02-01T00:00:00.000Z"} |
#
ExampleThis example provide a full use case of using FCM listener and calling flybuy methods.