I integrated OneSignal platform in my application. I successfully receive the push notifications but I’d like to show the notifies the the same layout for external and internal notifies of the app.
When I’m in the app and I receve the notify, The simple alert has been showed (similar to javascript alert).
When I’m out of the app and I receive the notify, the classic notify appears.
How can I integrate the same layout inside the app? Could you please support me?
console.log("Cordova is available. PUSH Enabler has bean enabled");
var notificationReceidedCallback = function (jsonData) {
console.log(jsonData);
console.log('notificationReceidedCallback: ' + JSON.stringify(jsonData));
};
var notificationOpenedCallback = function (jsonData) {
console.log(jsonData);
console.log('notificationOpenedCallback: ' + JSON.stringify(jsonData));
};
window["plugins"].OneSignal
.startInit(FIREBASE_APP_ID, FIREBASE_SENDER_ID)
.handleNotificationOpened(notificationOpenedCallback)
.handleNotificationReceived(notificationReceidedCallback)
.endInit();
Thanks
Luca