Closed Kerumen closed 9 months ago
Sorry to hear you're experiencing this issue, @Kerumen. Let me see if I can help.
Thanks for providing those details about your environment.
From our internal testing, we have not been able to reproduce this error. Could you perform a expo prebuild --clean
and try again? See if the error persists?
Thanks for your reply @levibostian!
Even with expo prebuild --clean
I still have the issue:
Ok, I've found something. When I run expo prebuild
I have this warning now:
TypeError: Cannot read properties of undefined (reading 'siteId')
If I set the env
field in the app.config.ts
, everything works fine.
ios: {
pushNotification: {
useRichPush: false,
env: {
siteId: "<siteId>",
apiKey: "<apiKey>",
region: "<region>"
}
}
}
However, the docs says: This field should be filled when enabling rich push. We are not using rich push for now, it should work without the env field right?
Ah, great observation. Especially big thank you for pointing out this section of the docs.
That section of the docs is not correct. I'll make that update today. The ios.pushNotifications.env
object may have been optional in the past, but it is required in the latest versions. No matter if push notifications are enabled or not in your app, if this information is not provided, you will not be able to send any data to Customer.io such as tracking an event.
By providing this env
object, are you able to successfully compile your app now?
Yes everything works fine now! Thanks for the fast reply 🙂
I upgraded to
v1.0.0-beta.14
and I'm facing errors when building my app:Here is the content of my AppDelegate.mm
```objective-c #if __has_include(Previous version (
v1.0.0-beta.13
/v3.3.2
) was working fine. It seems related to the latest change in the iOS SDK becauseCIOAppPushNotificationsHandler
is not found now and it was before, without any header include change. I don't know enough Swift to debug though.app.config.ts:
Versions: