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

[question]: How to integrate live activity in cordova? #877

Closed
abhinax4991 opened this issue Apr 9, 2023 · 5 comments
Closed

[question]: How to integrate live activity in cordova? #877

abhinax4991 opened this issue Apr 9, 2023 · 5 comments

Comments

@abhinax4991
Copy link

abhinax4991 commented Apr 9, 2023

The current documentation is not clear on how to add live activity in a cordova app, the main confusion being, wether to use enterLiveActivity function in the swift plugin code that ll be created for live activity or the cordova app which will call the the said plugin to start a liveactivity.

@emawby
Copy link
Contributor

emawby commented Apr 11, 2023

Hello @abhin-dynamify you do not need to call enterLiveActivity from the Swift plugin. OneSignal's enterLiveActivity method should be called from your Cordova code after your Cordova app has started a live activity. OneSignal does not currently have methods to help bridge between Cordova and Apple's iOS native Live Activity APIs.

@abhinax4991
Copy link
Author

Hello @abhin-dynamify you do not need to call enterLiveActivity from the Swift plugin. OneSignal's enterLiveActivity method should be called from your Cordova code after your Cordova app has started a live activity. OneSignal does not currently have methods to help bridge between Cordova and Apple's iOS native Live Activity APIs.

That brings me to another set of questions.

  1. can live activity with updates be tested on ios sim
  2. when using enterLiveActivity() method in cordova , please let me know if the value of token is a random user generated value.

Here is a log i for my recent integration tested on ios sim

2023-04-11 21:07:05.515290+0530 LiveActivityTest[10294:111996] WARNING: appId set, but please call setLaunchOptions(launchOptions) to complete OneSignal init!
2023-04-11 21:07:05.516411+0530 LiveActivityTest[10294:111996] Apache Cordova native platform version 6.2.0 is starting.
2023-04-11 21:07:05.516471+0530 LiveActivityTest[10294:111996] Multi-tasking -> Device: YES, App: YES
2023-04-11 21:07:05.527870+0530 LiveActivityTest[10294:111996] Could not load the "LaunchStoryboard" image referenced from a nib in the bundle with identifier "com.dynamify.three"
2023-04-11 21:07:05.584417+0530 LiveActivityTest[10294:111996] The preference key "AllowNewWindows" is not defined and will default to "FALSE"
2023-04-11 21:07:05.584876+0530 LiveActivityTest[10294:111996] The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE"
2023-04-11 21:07:05.586352+0530 LiveActivityTest[10294:111996] The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE"
2023-04-11 21:07:05.586407+0530 LiveActivityTest[10294:111996] The preference key "Allow3DTouchLinkPreview" is not defined and will default to "TRUE"
2023-04-11 21:07:05.586450+0530 LiveActivityTest[10294:111996] CDVWebViewEngine will reload WKWebView if required on resume
2023-04-11 21:07:05.586529+0530 LiveActivityTest[10294:111996] Using WKWebView
2023-04-11 21:07:05.586674+0530 LiveActivityTest[10294:111996] [CDVTimer][console] 0.016093ms
2023-04-11 21:07:05.586740+0530 LiveActivityTest[10294:111996] [CDVTimer][handleopenurl] 0.018001ms
2023-04-11 21:07:05.587136+0530 LiveActivityTest[10294:111996] [CDVTimer][intentandnavigationfilter] 0.351906ms
2023-04-11 21:07:05.587202+0530 LiveActivityTest[10294:111996] [CDVTimer][gesturehandler] 0.018001ms
2023-04-11 21:07:05.587261+0530 LiveActivityTest[10294:111996] [CDVTimer][liveactivity] 0.016093ms
2023-04-11 21:07:05.587304+0530 LiveActivityTest[10294:111996] [CDVTimer][TotalPluginStartup] 0.652075ms
MESSAGE
2023-04-11 21:07:06.020040+0530 LiveActivityTest[10294:111996] [XPCErrors] [BSXPCServiceConnectionProxy] Unable to register method "requestActivityWithRequest:error:" on class "BSXPCServiceConnectionProxy"
2023-04-11 21:07:06.020133+0530 LiveActivityTest[10294:111996] [XPCErrors] [BSXPCServiceConnectionProxy] Unable to register method "updateActivityWithIdentifier:payload:" on class "BSXPCServiceConnectionProxy"
2023-04-11 21:07:06.020206+0530 LiveActivityTest[10294:111996] [XPCErrors] [BSXPCServiceConnectionProxy] Unable to register method "endActivityWithIdentifier:payload:options:" on class "BSXPCServiceConnectionProxy"
2023-04-11 21:07:06.032566+0530 LiveActivityTest[10294:111996] [XPCErrors] [BSXPCServiceConnectionProxy] Unable to register method "activityDescriptorForIdentifier:" on class "BSXPCServiceConnectionProxy"
2023-04-11 21:07:06.032674+0530 LiveActivityTest[10294:111996] [XPCErrors] [BSXPCServiceConnectionProxy] Unable to register method "subscribeWithOptions:error:" on class "BSXPCServiceConnectionProxy"
2023-04-11 21:07:06.036802+0530 LiveActivityTest[10294:111996] THREAD WARNING: ['LiveActivity'] took '20.405029' ms. Plugin should use a background thread.
2023-04-11 21:07:06.037271+0530 LiveActivityTest[10294:111996] VERBOSE: setAppId(id) called with appId: 1ac73450-69a2-4bc2-a892-6d50ce11feae!
2023-04-11 21:07:06.037573+0530 LiveActivityTest[10294:111996] VERBOSE: setAppId(id) finished, checking if launchOptions has been set before proceeding...!
2023-04-11 21:07:06.037897+0530 LiveActivityTest[10294:111996] VERBOSE: setAppId(id) successful and launchOptions are set, initializing OneSignal...
2023-04-11 21:07:06.039442+0530 LiveActivityTest[10294:111996] DEBUG: OneSignal SessionManager initSessionFromCache
2023-04-11 21:07:06.039600+0530 LiveActivityTest[10294:111996] DEBUG: InAppMessageTracker initInfluencedTypeFromCache: OSChannelTracker tag: iam_id influenceType: UNATTRIBUTED indirectIds: (null) directIds: (null)
2023-04-11 21:07:06.039674+0530 LiveActivityTest[10294:111996] DEBUG: NotificationTracker initInfluencedTypeFromCache: OSChannelTracker tag: notification_id influenceType: UNATTRIBUTED indirectIds: (null) directIds: (null)
2023-04-11 21:07:06.039781+0530 LiveActivityTest[10294:111996] DEBUG: SessionManager restored from cache with influences: (
"OSInfluence channel: IN_APP_MESSAGE influenceType: DISABLED ids:(null)",
"OSInfluence channel: NOTIFICATION influenceType: DISABLED ids:(null)"
)
2023-04-11 21:07:06.045451+0530 LiveActivityTest[10294:111996] DEBUG: Downloading iOS parameters for this application
2023-04-11 21:07:06.049145+0530 LiveActivityTest[10294:111996] VERBOSE: Firing registerForRemoteNotifications
2023-04-11 21:07:06.050776+0530 LiveActivityTest[10294:112143] VERBOSE: registerUserAfterDelay
2023-04-11 21:07:06.051764+0530 LiveActivityTest[10294:111996] VERBOSE: registering for Application Lifecycle notifications
2023-04-11 21:07:06.052017+0530 LiveActivityTest[10294:111996] VERBOSE: setLaunchOptions() called with launchOptions: (null)!
2023-04-11 21:07:06.052225+0530 LiveActivityTest[10294:111996] VERBOSE: setLaunchOptions(id) finished, checking if appId has been set before proceeding...!
2023-04-11 21:07:06.052400+0530 LiveActivityTest[10294:111996] VERBOSE: setLaunchOptions(launchOptions) successful and appId is set, initializing OneSignal...
2023-04-11 21:07:06.052811+0530 LiveActivityTest[10294:111996] THREAD WARNING: ['OneSignalPush'] took '15.552979' ms. Plugin should use a background thread.
2023-04-11 21:07:06.053079+0530 LiveActivityTest[10294:111996] VERBOSE: Notification opened handler set successfully
2023-04-11 21:07:06.053337+0530 LiveActivityTest[10294:111996] VERBOSE: registerForPushNotifications Called:waitingForApnsResponse: 1
2023-04-11 21:07:06.053683+0530 LiveActivityTest[10294:111996] Running [email protected]
2023-04-11 21:07:06.053827+0530 LiveActivityTest[10294:111996] in request activity
2023-04-11 21:07:06.053924+0530 LiveActivityTest[10294:112146] VERBOSE: registerUserAfterDelay
2023-04-11 21:07:06.054031+0530 LiveActivityTest[10294:111996] device test
2023-04-11 21:07:06.054589+0530 LiveActivityTest[10294:111996] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE"
2023-04-11 21:07:06.055968+0530 LiveActivityTest[10294:111996] Error called
2023-04-11 21:07:06.095389+0530 LiveActivityTest[10294:111996] VERBOSE: application/scene willResignActive
2023-04-11 21:07:06.364551+0530 LiveActivityTest[10294:111996] VERBOSE: oneSignalDidRegisterForRemoteNotifications:deviceToken:
2023-04-11 21:07:06.364711+0530 LiveActivityTest[10294:111996] INFO: Device Registered with Apple: 806cd9bddd6b3aecc8c8f7eb6df1a45a1135dd74c57b746eca1cdc7dca1d689141aa95baccc7c717055434358a0cda4c4507eca6e7158cb665a35ca22305234a2d4e5bfcc13b8bb1a8f327039a4e0402
2023-04-11 21:07:06.364770+0530 LiveActivityTest[10294:111996] VERBOSE: updateDeviceToken:onSuccess:onFailure:
2023-04-11 21:07:06.365255+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:waitingForOneSReg: 0
2023-04-11 21:07:06.365315+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:isImmediatePlayerCreateOrOnSession: 1
2023-04-11 21:07:06.365363+0530 LiveActivityTest[10294:111996] VERBOSE: registerUser:waitingForApnsResponse: 0
2023-04-11 21:07:06.365450+0530 LiveActivityTest[10294:111996] VERBOSE: registerUser:initializationTime: 2023-04-11 15:37:06 +0000
2023-04-11 21:07:06.365489+0530 LiveActivityTest[10294:111996] VERBOSE: registerUserNow
2023-04-11 21:07:06.365566+0530 LiveActivityTest[10294:111996] VERBOSE: registerUserInternal
2023-04-11 21:07:06.365631+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:waitingForOneSReg: 0
2023-04-11 21:07:06.365680+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:isImmediatePlayerCreateOrOnSession: 1
2023-04-11 21:07:06.365721+0530 LiveActivityTest[10294:111996] DEBUG: Outcomes cleared for current session
2023-04-11 21:07:06.366039+0530 LiveActivityTest[10294:111996] DEBUG: OneSignal SessionManager restartSessionIfNeeded with entryAction:: 2 channelTrackers: (
)
2023-04-11 21:07:06.366081+0530 LiveActivityTest[10294:111996] DEBUG: OneSignal SessionManager sendSessionEndingWithInfluences with influences: (
)
2023-04-11 21:07:06.368750+0530 LiveActivityTest[10294:111996] VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
2023-04-11 21:07:06.370181+0530 LiveActivityTest[10294:112147] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2023-04-11 21:07:06.370267+0530 LiveActivityTest[10294:111996] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2023-04-11 21:07:06.371750+0530 LiveActivityTest[10294:112147] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2023-04-11 21:07:06.371850+0530 LiveActivityTest[10294:111996] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2023-04-11 21:07:06.372082+0530 LiveActivityTest[10294:111996] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2023-04-11 21:07:06.372111+0530 LiveActivityTest[10294:112147] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2023-04-11 21:07:06.372269+0530 LiveActivityTest[10294:111996] DEBUG: provision not found
2023-04-11 21:07:06.372376+0530 LiveActivityTest[10294:111996] VERBOSE: Not sending location with 'on_session' request payload, setLocationShared is false or lastLocation is null
2023-04-11 21:07:06.372613+0530 LiveActivityTest[10294:112147] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2023-04-11 21:07:06.372678+0530 LiveActivityTest[10294:112147] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2023-04-11 21:07:06.372799+0530 LiveActivityTest[10294:111996] VERBOSE: Calling OneSignal create/on_session
2023-04-11 21:07:06.373157+0530 LiveActivityTest[10294:112147] VERBOSE: HTTP Request (OSRequestRegisterUser) with URL: https://api.onesignal.com/players, with parameters: {
"app_id" : "1ac73450-69a2-4bc2-a892-6d50ce11feae",
"net_type" : 0,
"external_user_id" : "123456789",
"ios_bundle" : "com.dynamify.three",
"timezone_id" : "Asia/Kolkata",
"tags" : {
},
"device_type" : 0,
"sdk_type" : "031204",
"sdk" : "031204",
"identifier" : "806cd9bddd6b3aecc8c8f7eb6df1a45a1135dd74c57b746eca1cdc7dca1d689141aa95baccc7c717055434358a0cda4c4507eca6e7158cb665a35ca22305234a2d4e5bfcc13b8bb1a8f327039a4e0402",
"language" : "en",
"device_os" : "16.1",
"game_version" : "1.0.0",
"timezone" : 19800,
"notification_types" : -19,
"device_model" : "Simulator iPhone"
}
2023-04-11 21:07:06.405943+0530 LiveActivityTest[10294:112146] VERBOSE: network response (OSRequestGetIosParams): {
outcomes = {
direct = {
enabled = 0;
};
indirect = {
enabled = 0;
"notification_attribution" = {
limit = 10;
"minutes_since_displayed" = 60;
};
};
unattributed = {
enabled = 0;
};
};
"receive_receipts_enable" = 0;
"uses_provisional_auth" = 0;
}
2023-04-11 21:07:07.307913+0530 LiveActivityTest[10294:112148] VERBOSE: network response (OSRequestRegisterUser): {
id = "cf342541-97ac-477d-bd37-30734c6b51ac";
success = 1;
}
2023-04-11 21:07:07.308151+0530 LiveActivityTest[10294:112148] VERBOSE: Request <OSRequestRegisterUser: 0x600001e15320> success result {
id = "cf342541-97ac-477d-bd37-30734c6b51ac";
success = 1;
}
2023-04-11 21:07:07.308408+0530 LiveActivityTest[10294:111996] VERBOSE: on_session result: {
push = {
id = "cf342541-97ac-477d-bd37-30734c6b51ac";
success = 1;
};
}
2023-04-11 21:07:07.310629+0530 LiveActivityTest[10294:111996] DEBUG: App ID: 1ac73450-69a2-4bc2-a892-6d50ce11feae, external ID: 123456789
2023-04-11 21:07:07.310816+0530 LiveActivityTest[10294:111996] VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
2023-04-11 21:07:07.310994+0530 LiveActivityTest[10294:112143] VERBOSE: HTTP Request (OSRequestUpdateExternalUserId) with URL: https://api.onesignal.com/players/cf342541-97ac-477d-bd37-30734c6b51ac, with parameters: {
"app_id" : "1ac73450-69a2-4bc2-a892-6d50ce11feae",
"external_user_id" : "123456789"
}
2023-04-11 21:07:07.311020+0530 LiveActivityTest[10294:111996] VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
Token is
8019b64b5c650c23d96159797829cdbf3ad89aaf71eac099b8e82c06bf1e4e084fd870f9ed5feba0b84a88a317bdb751015aa930efdbfa0ad288293a848ff8f54301870d87a2a8ccb845e1be60696f2f426699f33f8f7c49ce2cd784914fff73107734b339895a1ccf79143a21bdfc9479368a7f847fbbd6e2f1b05bb25a6626
2023-04-11 21:07:07.362095+0530 LiveActivityTest[10294:112147] VERBOSE: HTTP Request (OSRequestLiveActivityEnter) with URL: https://api.onesignal.com/apps/1ac73450-69a2-4bc2-a892-6d50ce11feae/live_activities/my_activity_id/token, with parameters: {
"subscription_id" : "cf342541-97ac-477d-bd37-30734c6b51ac",
"push_token" : "8019b64b5c650c23d96159797829cdbf3ad89aaf71eac099b8e82c06bf1e4e084fd870f9ed5feba0b84a88a317bdb751015aa930efdbfa0ad288293a848ff8f54301870d87a2a8ccb845e1be60696f2f426699f33f8f7c49ce2cd784914fff73107734b339895a1ccf79143a21bdfc9479368a7f847fbbd6e2f1b05bb25a6626",
"device_type" : 0
}
Token is
8019b64b5c650c23d96159797829cdbf3ad89aaf71eac099b8e82c06bf1e4e084fd870f9ed5feba0b84a88a317bdb751015aa930efdbfa0ad288293a848ff8f54301870d87a2a8ccb845e1be60696f2f426699f33f8f7c49ce2cd784914fff73107734b339895a1ccf79143a21bdfc9479368a7f847fbbd6e2f1b05bb25a6626
2023-04-11 21:07:07.363404+0530 LiveActivityTest[10294:112147] VERBOSE: HTTP Request (OSRequestLiveActivityEnter) with URL: https://api.onesignal.com/apps/1ac73450-69a2-4bc2-a892-6d50ce11feae/live_activities/my_activity_id/token, with parameters: {
"subscription_id" : "cf342541-97ac-477d-bd37-30734c6b51ac",
"push_token" : "8019b64b5c650c23d96159797829cdbf3ad89aaf71eac099b8e82c06bf1e4e084fd870f9ed5feba0b84a88a317bdb751015aa930efdbfa0ad288293a848ff8f54301870d87a2a8ccb845e1be60696f2f426699f33f8f7c49ce2cd784914fff73107734b339895a1ccf79143a21bdfc9479368a7f847fbbd6e2f1b05bb25a6626",
"device_type" : 0
}
2023-04-11 21:07:07.926936+0530 LiveActivityTest[10294:112148] VERBOSE: network response (OSRequestLiveActivityEnter): {
success = 1;
}
2023-04-11 21:07:07.927134+0530 LiveActivityTest[10294:112148] VERBOSE: network response (OSRequestLiveActivityEnter): {
success = 1;
}
2023-04-11 21:07:07.927288+0530 LiveActivityTest[10294:112148] VERBOSE: network response (OSRequestUpdateExternalUserId): {
success = 1;
}
2023-04-11 21:07:07.927371+0530 LiveActivityTest[10294:112148] VERBOSE: Request <OSRequestUpdateExternalUserId: 0x600001e14b10> success result {
success = 1;
}
2023-04-11 21:07:07.928440+0530 LiveActivityTest[10294:111996] Results of setting external user id
2023-04-11 21:07:07.928553+0530 LiveActivityTest[10294:111996] {"push":{"success":1}}
2023-04-11 21:07:07.928645+0530 LiveActivityTest[10294:111996] Results of setting external user id push status:
2023-04-11 21:07:07.928804+0530 LiveActivityTest[10294:111996] 1
2023-04-11 21:07:08.154577+0530 LiveActivityTest[10294:112146] DEBUG: internalGetLocation kCLAuthorizationStatusNotDetermined.
2023-04-11 21:07:09.981340+0530 LiveActivityTest[10294:111996] VERBOSE: updateNotificationTypes called: 15
2023-04-11 21:07:09.983886+0530 LiveActivityTest[10294:111996] VERBOSE: Firing registerForRemoteNotifications
2023-04-11 21:07:09.983991+0530 LiveActivityTest[10294:111996] VERBOSE: startedRegister: 1
2023-04-11 21:07:09.984090+0530 LiveActivityTest[10294:111996] VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
2023-04-11 21:07:09.985161+0530 LiveActivityTest[10294:111996] VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
2023-04-11 21:07:09.986002+0530 LiveActivityTest[10294:111996] VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
2023-04-11 21:07:09.986934+0530 LiveActivityTest[10294:111996] VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
2023-04-11 21:07:09.988014+0530 LiveActivityTest[10294:111996] VERBOSE: HTTP Request (OSRequestUpdateNotificationTypes) with URL: https://api.onesignal.com/players/cf342541-97ac-477d-bd37-30734c6b51ac, with parameters: {
"notification_types" : 31,
"app_id" : "1ac73450-69a2-4bc2-a892-6d50ce11feae"
}
2023-04-11 21:07:09.988529+0530 LiveActivityTest[10294:111996] VERBOSE: oneSignalDidRegisterForRemoteNotifications:deviceToken:
2023-04-11 21:07:09.988704+0530 LiveActivityTest[10294:111996] INFO: Device Registered with Apple: 806cd9bddd6b3aecc8c8f7eb6df1a45a1135dd74c57b746eca1cdc7dca1d689141aa95baccc7c717055434358a0cda4c4507eca6e7158cb665a35ca22305234a2d4e5bfcc13b8bb1a8f327039a4e0402
2023-04-11 21:07:09.988822+0530 LiveActivityTest[10294:111996] VERBOSE: updateDeviceToken:onSuccess:onFailure:
2023-04-11 21:07:09.988907+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:waitingForOneSReg: 0
2023-04-11 21:07:09.988977+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:isImmediatePlayerCreateOrOnSession: 0
2023-04-11 21:07:09.989037+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:isOnSessionSuccessfulForCurrentState: 1
2023-04-11 21:07:09.989188+0530 LiveActivityTest[10294:111996] User accepted notifications: true
2023-04-11 21:07:10.378892+0530 LiveActivityTest[10294:111996] VERBOSE: application/scene didBecomeActive
2023-04-11 21:07:10.379061+0530 LiveActivityTest[10294:111996] DEBUG: Application Foregrounded started
2023-04-11 21:07:10.379160+0530 LiveActivityTest[10294:111996] DEBUG: cancelFocusCall of {
}
2023-04-11 21:07:10.379272+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:waitingForOneSReg: 0
2023-04-11 21:07:10.379357+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:isImmediatePlayerCreateOrOnSession: 0
2023-04-11 21:07:10.379436+0530 LiveActivityTest[10294:111996] VERBOSE: shouldRegisterNow:isOnSessionSuccessfulForCurrentState: 1
2023-04-11 21:07:10.379597+0530 LiveActivityTest[10294:111996] VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
2023-04-11 21:07:10.381103+0530 LiveActivityTest[10294:111996] VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
2023-04-11 21:07:10.382183+0530 LiveActivityTest[10294:111996] DEBUG: OneSignal SessionManager attemptSessionUpgrade with entryAction: 1
2023-04-11 21:07:10.382492+0530 LiveActivityTest[10294:111996] DEBUG: OneSignal SessionManager attemptSessionUpgrade try UNATTRIBUTED to INDIRECT upgrade
2023-04-11 21:07:10.382598+0530 LiveActivityTest[10294:111996] DEBUG: OSChannelTracker for: notification_id lastChannelObjectReceived: (null)
2023-04-11 21:07:10.382731+0530 LiveActivityTest[10294:111996] DEBUG: OSChannelTracker for: iam_id lastChannelObjectReceived: (null)
2023-04-11 21:07:10.382837+0530 LiveActivityTest[10294:111996] DEBUG: Trackers after update attempt: (
"OSChannelTracker tag: notification_id influenceType: UNATTRIBUTED indirectIds: (null) directIds: (null)",
"OSChannelTracker tag: iam_id influenceType: UNATTRIBUTED indirectIds: (null) directIds: (null)"
)
2023-04-11 21:07:10.382907+0530 LiveActivityTest[10294:111996] DEBUG: OneSignal SessionManager sendSessionEndingWithInfluences with influences: (
)
2023-04-11 21:07:10.403514+0530 LiveActivityTest[10294:111996] VERBOSE: init redisplayedInAppMessages with: {
}
2023-04-11 21:07:10.578068+0530 LiveActivityTest[10294:112144] VERBOSE: network response (OSRequestUpdateNotificationTypes): {
success = 1;
}

@emawby
Copy link
Contributor

emawby commented Apr 11, 2023

@abhin-dynamify

  1. iOS simulators might not work yet, but we are releasing an update soon that includes support for push on simulators
  2. That token should be the token that apple provides when a live activity is created. You can read more about the token and how we use it to update the live activity here

@abhinax4991
Copy link
Author

@abhin-dynamify

  1. iOS simulators might not work yet, but we are releasing an update soon that includes support for push on simulators
  2. That token should be the token that apple provides when a live activity is created. You can read more about the token and how we use it to update the live activity here

in ref to point 1. i see the PR is merged is . Please suggest a alternative method to test with the current version onesignal-cordova-plugin 3.3.1

@emawby
Copy link
Contributor

emawby commented Apr 12, 2023

@abhin-dynamify The iOS Native SDK will need to be released first before you would be able to have the change applied in a local version of of the OneSignal Cordova plugin. A release should be happening this week and a Cordova plugin release would happen shortly thereafter

@emawby emawby closed this as completed Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants