Push notification to ios using monaca

Asked 2 years ago, Updated 2 years ago, 97 views

Thank you for your help.
We are delivering push notifications from MONACA's IDE, but the behavior is different depending on the pattern.
Is there anyone who fits the same phenomenon?

A: Destination to debugger & starting debugger
 Alert display in monaca.cloud.Push.setHandler
B: To and not to debugger
 Message Display =>Application Launch =>Alert Display in monaca.cloud.Push.setHandler
C: To the app & starting the app
 No display
D: For apps & no apps started
 Message Display=>Application Launch

It's okay to behave differently depending on the pattern, but especially the C pattern above is not allowed.
If you have any information, please let me know.

ios monaca push-notification

2022-09-30 14:30

1 Answers

Self-resolved.

There was a problem with the code below, but
monaca.cloud.Push.setHandler(function(data){
  alert(data.message);
});

Resolved by making the following changes:
monaca.cloud.Push.setHandler(test);
function test(data){
  alert(data.message);
}


2022-09-30 14:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.