Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Push notifications with Ionic2

$
0
0

I have this in my core/settings.js

var temp = new BaseSettings().factory('$ionicCoreSettings', function() {
  "IONIC_SETTINGS_STRING_START";
  "IONIC_SETTINGS_STRING_END";
  var settings = {
      "app_id": "foo",
     "api_key": "bar",
     "gcm_key": "faz",
      "dev_push": false
  };
  return {
     "get": function(setting) {
           if (settings[setting]) {
              return settings[setting];
             }
           return null;
          }
  };
})

and then lower:

 get(name) {
    return temp.get(name);
   }

For me the gulp task works to rebuild this.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>