mAccess - Push notifications (Firebase)
This page provides details about push notifications payloads that may be useful to integrate the inWebo mAccess authentication into an iOS and Android mobile application. It is intended for developers.
Notifications sent to Firebase in LEGACY by our backend have the following format:
CODE
{
"collapse_key":"<collapse_key>",
"restricted_package_name":"<package_name>",
"data":{
"deviceAlias":"9b2a9506e2cfeeb2af2666a80f0c666d",
"action":"authenticate",
"alias":"d1aeb3e814866b2de4709080061ba666",
"serviceid":"99",
"serviceName":"MyServiceName"
},
"time_to_live":70,
"to":"<firebase_token>",
"priority":"high"
}
Notifications sent to Firebase V1 by our backend have the following format:
CODE
{
"message":{
"data":{
"deviceAlias":"9b2a9506e2cfeeb2af2666a80f0c666d",
"action":"authenticate",
"alias":"d1aeb3e814866b2de4709080061ba666",
"serviceid":"99",
"serviceName":"MyServiceName"
},
"android":{
"collapse_key":"<collapse_key>",
"restricted_package_name":"<package_name>",
"priority":"high",
"ttl":"70s"
},
"token":"<firebase_token>"
}
}