Local notification in phonegap 3.3.0

前端 未结 2 848
醉梦人生
醉梦人生 2020-12-31 22:10

Thank you Dawson! The problem mentioned below has been solved in android. But sadly it does not work when I build the project in ios, could anyone help?

2条回答
  •  天命终不由人
    2020-12-31 23:04

    You wont be able to call that function until after the deviceReady event has fired.

    For testing I always take my plugin function and add it as a click action to the "device is ready" p tag.

    Example:

    Device is Ready

    change to:

    Device is Ready

    I do this with the default cordova example app since I know that 'Device is ready' will not display until after the deviceReady event has fired. This is a good way to test if plugins are working before you do any real work on your project.

提交回复
热议问题