mobile-config.js and push.config.json
See original GitHub issueHi 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:
- Created 9 years ago
- Comments:10 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sounds good @raix - any estimate as to when this feature will be incorporated and released?
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.