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]: APNs environment not detected, no docs on how to fix #282

Open
djMax opened this issue Dec 11, 2024 · 3 comments
Open

[Bug]: APNs environment not detected, no docs on how to fix #282

djMax opened this issue Dec 11, 2024 · 3 comments
Labels

Comments

@djMax
Copy link

djMax commented Dec 11, 2024

Which Platforms?

iOS

Which React Native Version?

0.75.3

Which @braze/react-native-sdk SDK version?

13.1.1

Repro Rate

100%

Steps To Reproduce

Unclear what part of Expo setup is at fault here, but it's a "generic" Expo project.

Expected Behavior

APNs environment should be properly detected, or preferably, there should be a way to tell the SDK which one we are in.

Actual Incorrect Behavior

Error/Warning is printed for environment issue

Verbose Logs

[SesameDev.debug.dylib] Unable to automatically detect APNs environment from executable. Defaulting to `development`.
[libapp_launch_measurement.dylib] Failed to send CA Event for app launch measurements for ca_event_type: 0 event_name:
com.apple.app_launch_measurement.FirstFramePresentationMetric
[libapp_launch_measurement.dylib] Failed to send CA Event for app launch measurements for ca_event_type: 1 event_name:
com.apple.app_launch_measurement.ExtendedLaunchMetrics
[CoreFoundation] AddInstanceForFactory: No factory registered for id <CFUUID 0x600000309a60> F8BB1C28-BAE8-11D6-9C31-00039315CD46

Additional Information

No response

@djMax djMax added the bug label Dec 11, 2024
@jerielng
Copy link
Collaborator

Hi @djMax, it looks like you are in a debug environment. When you are in a debug/development environment, there isn't always a guarantee that the executable contains the APNs environment configuration. We default to development, so seeing this log message in a debug app is expected if you did not explicitly set the aps-environment in your app's .entitlements file.

These entitlements are automatically set by Xcode during the code signing and archival process, so you should not expect to see this fallback occur in a live production app.

If you have are observing other behaviors that do not align with what's described above, please write into [email protected] for a deeper look into your project. Thanks!

@djMax
Copy link
Author

djMax commented Dec 11, 2024

I get that, but given that this is in my entitlements file:

    <key>aps-environment</key>
    <string>development</string>

It seems like it really should be detected.

@jerielng
Copy link
Collaborator

@djMax Could you raise a ticket with our support team to get a deeper look into your project setup? Thanks!

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

No branches or pull requests

2 participants