question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mobile-config.js and push.config.json

See original GitHub issue

Hi Morten,

what do you think about moving push.config.json into mobille-config.js within App.configurePlugin function?

This is example from meteor docs

// Pass preferences for a particular PhoneGap/Cordova plugin
App.configurePlugin('com.phonegap.plugins.facebookconnect', {
  APP_ID: '1234567890',
  API_KEY: 'supersecretapikey'
});

So I guess something like:

App.configurePlugin('com.phonegap.plugins.push', {
  "apn": {...},
 "gcm": {
    "apiKey": "myApiKey",
    "projectNumber": "myProjectNumber"
  }
});

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lukemaderacommented, Mar 18, 2015

Sounds good @raix - any estimate as to when this feature will be incorporated and released?

0reactions
challettcommented, Jul 7, 2015

You can recreate this behaviour by calling Push.Configure(Meteor.settings.push) on the server and similarly on the client (omitting the API key on the client). Giving each environment thier own config in the settings.json file will give you the desired behaviour.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Load settings from JSON file for mobile-config.js
I want to keep the settings for my FB app in one place in the meteor code. Now that I've added the mobile-config.js...
Read more >
Creating and Uploading PLIST or .mobileconfig File - Jamf
In Jamf Pro, click Computers at the top of the sidebar. Click Configuration Profiles in the sidebar.
Read more >
Mobile Configuration | Meteor API Docs
Documentation of Meteor's Cordova configuration API. If your Meteor application targets mobile platforms such as iOS or Android, you can configure your app's ......
Read more >
Teach my app to pick settings from a mobileconfig file
For example, I can feed any arbitrary homepage URL string to Mozilla Firefox using a .mobileconfig file: ...
Read more >
activitree:push - Packosphere
Meteor Push Notifications with Firebase-Admin for IOS, Android and Web/PWA ... Client startup configuration file; Server startup configuration file ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found