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

[Bug]: External id is not setup on application launch #1497

Open
1 task done
Kalo2412 opened this issue Oct 8, 2024 · 2 comments
Open
1 task done

[Bug]: External id is not setup on application launch #1497

Kalo2412 opened this issue Oct 8, 2024 · 2 comments

Comments

@Kalo2412
Copy link

Kalo2412 commented Oct 8, 2024

What happened?

The external id is not set on application launch, when I check it in the OneSignal Dashboard

import SwiftUI
import OneSignalFramework
import OSLog

class AppDelegate: NSObject, UIApplicationDelegate {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
        OneSignal.Debug.setLogLevel(.LL_VERBOSE)
        
        OneSignal.initialize("one singal app id")
        OneSignal.Notifications.requestPermission({ accepted in
            if accepted {
                Logger.logInfo(message: "Notification permission accepted: \(accepted)")
            } else {
                Logger.logInfo(message: "User did not accept notifications")
            }
        }, fallbackToSettings: true)
        
        OneSignal.login("1010101010101")

            
        return true
    }
}

@main
struct TeamScheduleApp: App {
    @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
    
    var body: some Scene {
        WindowGroup {
            LandingPageView()
        }
    }
}

Steps to reproduce?

1. Install from Swift Package Manager the latest version of OneSignal iOS SDK 5.2.5
2. Start the application with the code provided up
3. Check the console output

What did you expect to happen?

The external id to be properly set in the onesignal dashboard

OneSignal iOS SDK version

Release 5.2.5

iOS version

17

Specific iOS version

* iOS 17.6.1

Relevant log output

WARNING: OneSignalUserManagerImpl.startNewSession() is unable to fetch user with External ID 10101 due to null OneSignal ID
WARNING: OSUserExecutor.executePendingRequests() is blocked by unexecutable request <OSRequestIdentifyUser with external_id: 10101>

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Kalo2412
Copy link
Author

Any progress?

1 similar comment
@Kalo2412
Copy link
Author

Kalo2412 commented Nov 4, 2024

Any progress?

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