Giter Club home page Giter Club logo

cordova-plugin-aliyunpush's People

Contributors

442623641 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cordova-plugin-aliyunpush's Issues

ios项目 build时报错

ld: framework not found UTDID
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The following build commands failed:
Ld build/emulator/newApp.app/newApp normal x86_64
(1 failure)
(node:6414) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/cordova/build-debug.xcconfig,-workspace,newApp.xcworkspace,-scheme,newApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/build/sharedpch
(node:6414) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6414) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ios 项目build时报错

AliyunPush.m:87:56: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
NSString *deviceId = [[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] getDeviceId];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/newApp/Plugins/cordova-plugin-aliyunpush/AliyunPush.m:109:38: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
[[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] bindAccountWithAccount:account andCallback:^(BOOL result) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/newApp/Plugins/cordova-plugin-aliyunpush/AliyunPush.m:133:34: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
[[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] bindTagsWithTags:tags andCallback:^(BOOL result) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/newApp/Plugins/cordova-plugin-aliyunpush/AliyunPush.m:154:34: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
[[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] unbindTagsWithTags:tags andCallback:^(BOOL result) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/liqinong/Desktop/liqinong/newApp/newApp/platforms/ios/newApp/Plugins/cordova-plugin-aliyunpush/AliyunPush.m:175:34: error: no known class method for selector 'sharedSevenAppNotificationLauncher'
[[AliyunNotificationLauncher sharedSevenAppNotificationLauncher] listTagsAndCallback:^(id result) {5 errors generated.

有三个bug

1、src/ios/Plugins/AppDelegate+AliyunPush.m
第62行NSLog(@"---applicationDidBecomeActive----")后面少了一个分号,会导致build报错
2、aliyunpush.js中getRegisterId没有失败回调函数,会导致用的时候自己写的失败回调不会被执行

getRegisterId: function(successCallback, errorCallback) {
    this.callNative('getRegisterId', [], successCallback, errorCallback);
}

3、在plugin.xml中的下面添加aps-environment,才能确保生产环境推送成功

<config-file parent="aps-environment" target="*-Debug.plist">
    <string>development</string>
</config-file>
<config-file parent="aps-environment" target="*-Release.plist">
    <string>production</string>
</config-file>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.