Front calls changes
Modifications to consider when using front calls.
New front calls
standard.feInfo
supports now thecolorScheme
parameter.
standard.composeMail
(as alias formobile.composeMail
)standard.connectivity
(as alias formobile.connectivity
)standard.getGeolocation
(as alias formobile.getGeolocation
)standard.isForeground
(as alias formobile.isForeground
)
JSON data from mobile.getRemoteNotifications
JSON structure returned with GMA/Android
Starting with GMA 4.01.07, with the mobile.getRemoteNotifications
front call,
the structure of the returned JSON data for an FCM notification of type "message"
has changed, maching the Firebase Cloud Messaging API V1 JSON used by the push notification send
from the push server.
"data"
field, using a "genero_notification"
member: {
"type": "message",
"data": "\"genero_notification\" : { \"title\" : ... }",
"from": "764001239714"
}
"genero_notification"
member is no longer used, and the
"title"
, "content"
, "icon"
(as well as the new
"id"
) fields appear now directly under "data"
: {
"type": "message",
"data": {
"id" : "82837497234",
"title" : "Game Request!",
"content" : "Bob wants to play poker...",
"icon" : "smiley",
...
},
"from": "764001239714"
}
JSON structure returned with GMI/iOS
mobile.getRemoteNotifications
front call contents two new members to identify
notifications "id"
and "sysId"
: {
"aps" :
{
"alert" : "My first push",
"badge" : 1,
"sound" : "default",
"content-available" : 1
},
"id":1,
"sysId":"6A31016D-051E-4943-9111-E959241D3DCD"
}
For more details, see mobile.getRemoteNotifications.
GBC supports mobile front calls
Starting with GBC 4.01.20, some front calls of the "mobile" module are implemented in the GBC JavaScript code, and can be used when displaying applications forms in a browser on the mobile device, using GBC through GAS or in a WASM app. Before this support, it was not possible to use the mobile front calls in this configuration.
- Some front calls such as
mobile.chooseContact
need a secure context (connection through HTTPS or on localhost) - The behavior and return values of some front calls have changed, such as
mobile.composeMail
ormobile.composeSMS
, as the control of the messaging/SMS app is limited from GBC JavaScript.
For more details, see Genero Mobile common front calls.
Changes in earlier versions
Make sure to check the upgrade notes of earlier versions, to not miss changes introduced in maintenance releases. For more details, see Front call changes in BDL 4.00.
- No particular change to consider.