pushwoosh-cordova-plugin 8.3.55 → 8.3.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +2 -2
  2. package/example_voip/LICENSE +21 -0
  3. package/example_voip/README.md +156 -0
  4. package/example_voip/Screenshots/Android.png +0 -0
  5. package/example_voip/Screenshots/iOS.png +0 -0
  6. package/example_voip/Screenshots/xcode_appgroups.png +0 -0
  7. package/example_voip/demovoip/README.md +181 -0
  8. package/example_voip/demovoip/config.xml +22 -0
  9. package/example_voip/demovoip/google-services.json +86 -0
  10. package/example_voip/demovoip/hooks/after_platform_add/010_install_plugin.js +46 -0
  11. package/example_voip/demovoip/hooks/after_prepare/010_setup_gradle_wrapper.js +34 -0
  12. package/example_voip/demovoip/hooks/after_prepare/015_fix_agp_version.js +36 -0
  13. package/example_voip/demovoip/hooks/after_prepare/020_copy_google_services.js +23 -0
  14. package/example_voip/demovoip/hooks/after_prepare/025_add_voip_pod.js +43 -0
  15. package/example_voip/demovoip/hooks/after_prepare.js +28 -0
  16. package/example_voip/demovoip/package-lock.json +1104 -0
  17. package/example_voip/demovoip/package.json +34 -0
  18. package/example_voip/demovoip/www/css/index.css +605 -0
  19. package/example_voip/demovoip/www/img/logo.png +0 -0
  20. package/example_voip/demovoip/www/index.html +175 -0
  21. package/example_voip/demovoip/www/js/index.js +419 -0
  22. package/package.json +1 -1
  23. package/plugin.xml +12 -9
  24. package/src/android/add-android-voip.gradle +1 -1
  25. package/src/android/src/com/pushwoosh/plugin/pushnotifications/CallsAdapter.java +0 -1
  26. package/src/android/src/com/pushwoosh/plugin/pushnotifications/NoopCallsAdapter.java +0 -5
  27. package/src/android/src/com/pushwoosh/plugin/pushnotifications/PushNotifications.java +123 -42
  28. package/src/android/src/com/pushwoosh/plugin/pushnotifications/VoIPEventStorage.java +130 -0
  29. package/src/android/src/com/pushwoosh/plugin/pushnotifications/calls/PWCordovaCallEventListener.java +61 -34
  30. package/src/android/src/com/pushwoosh/plugin/pushnotifications/calls/PushwooshCallsAdapter.java +18 -13
  31. package/src/ios/PushNotification.m +0 -5
  32. package/types/PushNotification.d.ts +0 -1
  33. package/www/PushNotification.js +0 -4
@@ -643,11 +643,6 @@ API_AVAILABLE(ios(10.0)) {
643
643
  //stub, android only
644
644
  }
645
645
 
646
- - (void)setVoipAppCode:(CDVInvokedUrlCommand *)command {
647
- NSString *voipAppCode = command.arguments[0];
648
- [PushwooshVoIPImplementation setPushwooshVoIPAppId:voipAppCode];
649
- }
650
-
651
646
  // MARK: - VoIP, CallKit callbacks
652
647
  - (void)receiveCallFromRecents:(NSNotification *) notification {
653
648
  NSString* callID = notification.object[@"callId"];
@@ -89,7 +89,6 @@ export interface PushNotification {
89
89
  registerSMSNumber(phoneNumber: string, success?: () => void, fail?: (error: Error|string) => void): void;
90
90
  registerWhatsappNumber(phoneNumber: string, success?: () => void, fail?: (error: Error|string) => void): void;
91
91
  setApiToken(apiToken: string): void;
92
- setVoipAppCode(appCode: string): void;
93
92
  registerEvent(eventName: string, success: (...args: any[]) => void, fail?: (error?: Error | string) => void): void;
94
93
  initializeVoIPParameters(supportsVideo?: boolean, ringtoneSound?: string, handleTypes?: number, success?: () => void, error?: (err: Error | string) => void): void;
95
94
  speakerOn(success?: () => void, error?: (err: Error | string) => void): void;
@@ -831,10 +831,6 @@ PushNotification.prototype.setApiToken = function(token) {
831
831
  exec(null, null, "PushNotification", "setApiToken", [token]);
832
832
  }
833
833
 
834
- PushNotification.prototype.setVoipAppCode = function(appCode) {
835
- exec(null, null, "PushNotification", "setVoipAppCode", [appCode]);
836
- }
837
-
838
834
  PushNotification.prototype.setIncomingCallTimeout = function(timeoutSeconds) {
839
835
  exec(null, null, "PushNotification", "setIncomingCallTimeout", [timeoutSeconds]);
840
836
  }