Ignatius Kloppers
Ignatius Kloppers

Reputation: 33

Nativescript iOS app not running on device

I'm encountering a strange issue and was hoping to get some insight. When I build my Nativescript app on a Mac, and open it in the iOS simulator, it works. When I "prepare" the iOS app and open it in xcode, and run it on a simulator, it works. When I run it to my plugged in device, it also works. But when I take that project to the Appstore, and download it from there, I only get the splash screen, and then the app exits. Can anyone please shed some light?

Upvotes: 1

Views: 208

Answers (1)

Ignatius Kloppers
Ignatius Kloppers

Reputation: 33

Okay so I managed to figure out what the issue is, so I hope this will help someone in future:

Even though I added "Push Notifications" as a Capability(Signing & Capabilities) in XCode, I had to add the "Background Modes" there as well, and then select "Remote Notifications".

This resolved the issue for me.

Upvotes: 1

Related Questions