Core can't find App ID or API key despite using correct config

I’ve been testing my Ionic app on iOS (iPad mini, specifically, in this case), and have been seeing a white page appear briefly after the app’s splashscreen. After doing a bit of research and discovering that this screen appears on an error during inital loading, I found the following two errors in Safari’s web inspector:

CORE: Unable to load app ID or API key, falling back to $ionicApp.getApp()…
$ionicPush:REGISTER_ERROR – " - no valid ‘aps-environment’ entitlement string found for application"

This is interesting, because push notifications have been working without issue. I have other devices that have registered successfully and are receiving notifications. Also, I’ve added the correct strings to my .config in app.js as follows:

app.config(['$ionicAppProvider', function ($ionicAppProvider) {
  // Identify app
    // The App ID for the server
    app_id: 'xxxx',
    // The API key all services will use for this app
    api_key: 'xxxx',
    // Your GCM sender ID/project number (Uncomment if using GCM)
    gcm_id: 'xxxx'

Any ideas why this might be showing up? I’ve tried reinstalling core and push, ensuring my certificates are correct, double checked the keys and app ID were correct… and I’m stumped.

Help would be much appreciated!

1 Like

Any update on this @mododev ?

Not a satisfying one, I’m afraid. I rebuilt the XCode project and the error disappeared. :relieved: