Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent Push and build problems #9

Open
Lecramed opened this issue Oct 19, 2017 · 0 comments
Open

Silent Push and build problems #9

Lecramed opened this issue Oct 19, 2017 · 0 comments

Comments

@Lecramed
Copy link

Hi,

We are having problems with the plugin.
When i use the 6.0.0 version its working fine and we receive push messages.
But the problem is we don't receive silent push messages on Android. (Working for iOS) (the message should come in only in the app)

Pushwoosh suggests to update the plugin, but we have 2 problems.

  1. On android we get the message unknown module puswoosh-cordova-plugin.PushNotification not found, if we use the window.plugins.pushNotification the android app crashes.

  2. On iOS we get a build error (see below)

To reproduce i created a new blank javascript project import the plugin (select zip)
We used the latest 7.0.7 and the 7.0.5. build from here.

Can you tell us what to do?

Greetings
Marcel de Groot

The build log:

` Warning: [xcode-build] /Users/builder/BpcTooling/Cordova3/6.4.0/CorePlugins/cordova-plugin-media/src/ios/CDVSound.m:689:27
unused variable 'audioSettings' [-Wunused-variable]
NSDictionary *audioSettings = @{AVFormatIDKey: @(kAudioFormatMPEG4AAC),
^
[xcode-build] /Users/builder/BpcTooling/Cordova3/6.4.0/CorePlugins/cordova-plugin-media/src/ios/CDVSound.m:694:60
null passed to a callee that requires a non-null argument [-Wnonnull]
audioFile.recorder = [[CDVAudioRecorder alloc] initWithURL:audioFile.resourceURL settings:nil error:&error];
^ ~~~
[xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/TLKLiveSyncManager.m:5:2
missing submodule 'GCDWebServer.GCDWebServerDataResponse' [-Wincomplete-umbrella]
#import <GCDWebServer/GCDWebServerDataResponse.h>
^
[xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:13:2
missing submodule 'GCDWebServer.GCDWebServerFileResponse' [-Wincomplete-umbrella]
#import <GCDWebServer/GCDWebServerFileResponse.h>
^ ~
[xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:75:17
unused variable 'infoPlistCreationDateFromDefaults' [-Wunused-variable]
NSDate *infoPlistCreationDateFromDefaults = TLKInfoPersistence.getInfoPlistCreationDateFromDefaults;
^ ~
[xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:76:17
unused variable 'infoPlistCreationDateFromApplication' [-Wunused-variable]
NSDate *infoPlistCreationDateFromApplication = TLKInfoPersistence.getInfoPlistCreationDateFromApplication;
^
[xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:266:18
performSelector may cause a leak because its selector is unknown [-Warc-performSelector-leaks]
[webView performSelector:loadRequestSEL withObject:request];
^
[xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:387:42
performSelector may cause a leak because its selector is unknown [-Warc-performSelector-leaks]
NSDictionary *pluginsMap = [self performSelector:pluginsMapSel];
^
[xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-imagePicker-master/src/ios/GMImagePicker/GMAlbumsViewController.m:232:1
conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned int') [-Wmismatched-return-types]

  • (NSUInteger)supportedInterfaceOrientations
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-imagePicker-master/src/ios/GMImagePicker/GMFetchItem.m:27:5
    expression result unused [-Wunused-value]
    be_saving_img_thumb;
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-imagePicker-master/src/ios/GMImagePicker/GMGridViewController.m:505:52
    enum values with underlying type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
    NSLog(@"original orientation: %ld",(UIImageOrientation)result.imageOrientation);
    ^~~~~~~~~~~~~~~~~~~
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-imagePicker-master/src/ios/GMImagePicker/GMGridViewController.m:509:49
    enum values with underlying type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
    NSLog(@"corrected orientation: %ld",(UIImageOrientation)imageToDisplay.imageOrientation);
    ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [xcode-build] /Users/builder/BpcTooling/Cordova3/6.4.0/CorePlugins/cordova-plugin-inappbrowser/src/ios/CDVInAppBrowser.m:783:19
    null passed to a callee that requires a non-null argument [-Wnonnull]
    [self.webView loadHTMLString:nil baseURL:nil];
    ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [xcode-build] /Users/builder/BpcTooling/Cordova3/6.4.0/CorePlugins/cordova-plugin-inappbrowser/src/ios/CDVInAppBrowser.m:1079:1
    conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned int') [-Wmismatched-return-types]
  • (NSUInteger)supportedInterfaceOrientations
    ^ ~~~
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/Pushwoosh-master/src/ios/PushNotification.m:348:20
    'setUserId:' is deprecated [-Wdeprecated-declarations]
    [self.pushManager setUserId:userId];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/Pushwoosh-master/src/ios/PushNotification.m:354:20
    'postEvent:withAttributes:' is deprecated [-Wdeprecated-declarations]
    [self.pushManager postEvent:event withAttributes:attributes];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-plugin-settings-master/src/ios/HWPSettings.m:9:15
    unused variable 'param' [-Wunused-variable]
    NSString* param = [[command arguments] objectAtIndex:0];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-plugin-settings-master/src/ios/HWPSettings.m:84:15
    unused variable 'param' [-Wunused-variable]
    NSString* param = [[command arguments] objectAtIndex:0];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-plugin-settings-master/src/ios/HWPSettings.m:112:15
    unused variable 'param' [-Wunused-variable]
    NSString* param = [[command arguments] objectAtIndex:0];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/google-analytics-plugin-master-wilson/ios/UniversalAnalyticsPlugin.m:193:42
    'createAppView' is deprecated: Use createScreenView instead. [-Wdeprecated-declarations]
    [tracker send:[[GAIDictionaryBuilder createAppView] build]];
    ^
    [xcode-build] /Users/builder/BpcTooling/Cordova3/6.4.0/CorePlugins/cordova-plugin-media/src/ios/CDVSound.m:689:27
    unused variable 'audioSettings' [-Wunused-variable]
    NSDictionary *audioSettings = @{AVFormatIDKey: @(kAudioFormatMPEG4AAC),
    ^
    [xcode-build] /Users/builder/BpcTooling/Cordova3/6.4.0/CorePlugins/cordova-plugin-media/src/ios/CDVSound.m:694:60
    null passed to a callee that requires a non-null argument [-Wnonnull]
    audioFile.recorder = [[CDVAudioRecorder alloc] initWithURL:audioFile.resourceURL settings:nil error:&error];
    ^
    [xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/TLKLiveSyncManager.m:5:2
    missing submodule 'GCDWebServer.GCDWebServerDataResponse' [-Wincomplete-umbrella]
    #import <GCDWebServer/GCDWebServerDataResponse.h>
    ^
    [xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:13:2
    missing submodule 'GCDWebServer.GCDWebServerFileResponse' [-Wincomplete-umbrella]
    #import <GCDWebServer/GCDWebServerFileResponse.h>
    ^ ~
    [xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:75:17
    unused variable 'infoPlistCreationDateFromDefaults' [-Wunused-variable]
    NSDate *infoPlistCreationDateFromDefaults = TLKInfoPersistence.getInfoPlistCreationDateFromDefaults;
    ^ ~
    [xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:76:17
    unused variable 'infoPlistCreationDateFromApplication' [-Wunused-variable]
    NSDate *infoPlistCreationDateFromApplication = TLKInfoPersistence.getInfoPlistCreationDateFromApplication;
    ^
    [xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:266:18
    performSelector may cause a leak because its selector is unknown [-Warc-performSelector-leaks]
    [webView performSelector:loadRequestSEL withObject:request];
    ^
    [xcode-build] /Users/builder/BpcTooling/Cordova3/Plugins/com.telerik.LiveSync/src/ios/Resources/UIViewController+LiveSync.m:387:42
    performSelector may cause a leak because its selector is unknown [-Warc-performSelector-leaks]
    NSDictionary *pluginsMap = [self performSelector:pluginsMapSel];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-imagePicker-master/src/ios/GMImagePicker/GMAlbumsViewController.m:232:1
    conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long') [-Wmismatched-return-types]
  • (NSUInteger)supportedInterfaceOrientations
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-imagePicker-master/src/ios/GMImagePicker/GMFetchItem.m:27:5
    expression result unused [-Wunused-value]
    be_saving_img_thumb;
    ^
    [xcode-build] /Users/builder/BpcTooling/Cordova3/6.4.0/CorePlugins/cordova-plugin-file-transfer/src/ios/CDVFileTransfer.m:224:34
    values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead [-Wformat]
    DLog(@"fileData length: %d", [fileData length]);
    ^~~~~~~~~~~~~~~~~~~
    [xcode-build] /Users/builder/BpcTooling/Cordova3/6.4.0/CorePlugins/cordova-plugin-inappbrowser/src/ios/CDVInAppBrowser.m:783:19
    null passed to a callee that requires a non-null argument [-Wnonnull]
    [self.webView loadHTMLString:nil baseURL:nil];
    ^~~~~~~~~~~
    [xcode-build] /Users/builder/BpcTooling/Cordova3/6.4.0/CorePlugins/cordova-plugin-inappbrowser/src/ios/CDVInAppBrowser.m:1079:1
    conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long') [-Wmismatched-return-types]
  • (NSUInteger)supportedInterfaceOrientations
    ^ ~~~
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/Pushwoosh-master/src/ios/PushNotification.m:313:101
    implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'int' [-Wshorten-64-to-32]
    CDVPluginResult pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsInt:badge];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/Pushwoosh-master/src/ios/PushNotification.m:348:20
    'setUserId:' is deprecated [-Wdeprecated-declarations]
    [self.pushManager setUserId:userId];
    ~ ^~~~~
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/Pushwoosh-master/src/ios/PushNotification.m:354:20
    'postEvent:withAttributes:' is deprecated [-Wdeprecated-declarations]
    [self.pushManager postEvent:event withAttributes:attributes];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-plugin-settings-master/src/ios/HWPSettings.m:9:15
    unused variable 'param' [-Wunused-variable]
    NSString
    param = [[command arguments] objectAtIndex:0];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-plugin-settings-master/src/ios/HWPSettings.m:84:15
    unused variable 'param' [-Wunused-variable]
    NSString* param = [[command arguments] objectAtIndex:0];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/cordova-plugin-settings-master/src/ios/HWPSettings.m:112:15
    unused variable 'param' [-Wunused-variable]
    NSString* param = [[command arguments] objectAtIndex:0];
    ^
    [xcode-build] /tmp/builds/Q6TDZw2BXHuPwzW8xf/app/Plugins/google-analytics-plugin-master-wilson/ios/UniversalAnalyticsPlugin.m:193:42
    'createAppView' is deprecated: Use createScreenView instead. [-Wdeprecated-declarations]
    [tracker send:[[GAIDictionaryBuilder createAppView] build]];
    ^
    Error: [xcode-build] ld: 1 duplicate symbol for architecture armv7
    [xcode-build] clang: error: linker command failed with exit code 1 (use -v to see invocation)
    [xcode-build] ld: 1 duplicate symbol for architecture arm64
    [xcode-build] clang: error: linker command failed with exit code 1 (use -v to see invocation)
    Error: ** ARCHIVE FAILED **

The following build commands failed:
Ld DerivedData/Build/Intermediates/ArchiveIntermediates/Cordova640/IntermediateBuildFilesPath/Cordova640.build/Debug-iphoneos/Cordova640.build/Objects-normal/armv7/Cordova640 normal armv7
Ld DerivedData/Build/Intermediates/ArchiveIntermediates/Cordova640/IntermediateBuildFilesPath/Cordova640.build/Debug-iphoneos/Cordova640.build/Objects-normal/arm64/Cordova640 normal arm64
(2 failures)
Error: 'Build failed with error code 65'
Error: 'Build failed with error code 65'
Done building project "ELGAPP.tmp.proj" -- FAILED.
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant