-
Notifications
You must be signed in to change notification settings - Fork 29
Description
D/XGPushPlugin: exec : action = addListener, callbackId = XGPush132255936
D/XGPushPlugin: addListener : callbackId=XGPush132255936
D/XGPushPlugin: exec : action = registerPush, callbackId = XGPush132255937
D/XGPushPlugin: > register private:null
E/ActivityThread: Failed to find provider info for io.cordova.hellocordova.TPUSH_PROVIDER
E/ActivityThread: Failed to find provider info for io.cordova.hellocordova.TPUSH_PROVIDER
I/TpnsSecurity: JNI_OnLoad
D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)
E/ActivityThread: Failed to find provider info for io.cordova.hellocordova.TPUSH_PROVIDER
I/XINGE: [XGOtherPush] Reservert info: use normal xg token register
E/ActivityThread: Failed to find provider info for io.cordova.hellocordova.TPUSH_PROVIDER
D/SystemWebChromeClient: file:///android_asset/www/cordova.js: Line 1223 : deviceready has not fired after 5 seconds.
I/chromium: [INFO:CONSOLE(1223)] "deviceready has not fired after 5 seconds.", source: file:///android_asset/www/cordova.js (1223)
D/SystemWebChromeClient: file:///android_asset/www/cordova.js: Line 1216 : Channel not fired: onCordovaXGPushReady
I/chromium: [INFO:CONSOLE(1216)] "Channel not fired: onCordovaXGPushReady", source: file:///android_asset/www/cordova.js (1216)
测试代码:
onDeviceReady: function() {
xgpush.enableDebug(true,function(event){
console.log(event)
},function(event){
console.log(event)
});
xgpush.on("register", function (data) {
console.log("register:", data);
});
xgpush.on("click", function (data) {
alert("click:" + JSON.stringify(data));
});
xgpush.getLaunchInfo(function (data) {
alert("getLaunchInfo:" + JSON.stringify(data));
});
this.receivedEvent('deviceready');
},
有什么思路吗?