waitaction / cordova-plugin-xiaomi-push Goto Github PK
View Code? Open in Web Editor NEW小米推送
小米推送
请问这个是直接用declare const xiaomiPush: any; 引用吗
Hello,
I meet this error when I use this plugin on my app (using Cordova android 10.1.2).
2023-02-17 13:27:18.236 8719-8864/com.app.mobile I/XMPush-8719: [Tid:63] sdk_version = 3_8_5
2023-02-17 13:27:18.237 8719-8744/com.app.mobile D/OpenGLRenderer: endAllActiveAnimators on 0xb400007b28897000 (RippleDrawable) with handle 0xb400007b5701cc00
2023-02-17 13:27:18.239 8719-8864/com.app.mobile I/XMPush-8719: [Tid:63] register invalid, aid=true;atn=true;rid=false;rse=false;did=false
2023-02-17 13:27:18.255 8719-8864/com.app.mobile I/XMPush-8719: [Tid:63] register invalid, aid=true;atn=true;rid=false;rse=false;did=false
2023-02-17 13:27:18.255 8719-8864/com.app.mobile V/XMPush-8719: [Tid:63] Don't send message before initialization succeeded!
2023-02-17 13:27:18.266 8719-8864/com.app.mobile V/XMPush-8719: [Tid:63] get region from system, region = CN
2023-02-17 13:27:18.267 8719-8864/com.app.mobile V/XMPush-8719: [Tid:63] get region from system, region = CN
2023-02-17 13:27:18.275 8719-8864/com.app.mobile W/JavaCalls: Meet exception when call Method 'getImei' in android.telephony.TelephonyManager@8c4d8a7, java.lang.reflect.InvocationTargetException
2023-02-17 13:27:18.277 8719-8864/com.app.mobile I/XMPush-8719: [Tid:63] register invalid, aid=true;atn=true;rid=false;rse=false;did=false
2023-02-17 13:27:18.277 8719-8864/com.app.mobile V/XMPush-8719: [Tid:63] Don't send message before initialization succeeded!
2023-02-17 13:27:18.281 8719-8864/com.app.mobile I/XMPush-8719: [Tid:63] register invalid, aid=true;atn=true;rid=false;rse=false;did=false
2023-02-17 13:27:18.281 8719-8864/com.app.mobile V/XMPush-8719: [Tid:63] Don't send message before initialization succeeded!
2023-02-17 13:27:18.853 8719-8871/com.app.mobile V/XMPush-8719: [Tid:68] receive an intent from server, action=com.xiaomi.mipush.RECEIVE_MESSAGE
2023-02-17 13:27:18.856 8719-8871/com.app.mobile I/XMPush-8719: [Tid:68] register invalid, aid=true;atn=true;rid=false;rse=false;did=false
2023-02-17 13:27:18.857 8719-8871/com.app.mobile I/XMPush-8719: [Tid:68] register invalid, aid=true;atn=true;rid=false;rse=false;did=false
2023-02-17 13:27:18.858 8719-8871/com.app.mobile V/XMPush-8719: [Tid:68] processing a message, action=Registration
2023-02-17 13:27:18.858 8719-8871/com.app.mobile I/XMPush-8719: [Tid:68] begin execute onCommandResult, command=register, resultCode=22022, reason=Invalid package name:com.app.mobile
2023-02-17 13:27:18.859 8719-8871/com.app.mobile V/XiaomiPushTag: onCommandResult is called. command={register}, resultCode={22022}, reason={Invalid package name:com.app.mobile}, category={null}, commandArguments={null}
My project information:
Ionic:
Ionic CLI : 6.20.1 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.4.1
@angular-devkit/build-angular : 13.2.6
@angular-devkit/schematics : 13.3.3
@angular/cli : 13.2.6
@ionic/angular-toolkit : 6.1.0
Cordova:
Cordova CLI : 11.0.0
Cordova Platforms : android 10.1.2
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 22 other plugins)
Utility:
cordova-res : 0.15.4
native-run (update available: 1.7.1) : 1.6.0
System:
ios-deploy : 1.12.1
NodeJS : v18.14.0 (/usr/local/bin/node)
npm : 8.15.0
OS : macOS
Xcode : Xcode 14.2 Build version 14C18
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.