- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am building an app which calls multiple APIs. I have put in the API Key inside the JS files while calling the APIs. If the API Key is reset at the server, how do I dynamically reset the API Key used in the app? Also, is there a way to secure the API secret without putting it on the JS variable?
Thanks
Navin
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kumar -- that's a real issue that one faces with a Cordova app. I'm sure there are a variety of solutions out there, but we don't have one, in particular, to recommend. I suggest you search Stack Overflow and other resources for something like "how to hide API keys in a Cordova PhoneGap app" for some solutions that others have implemented. The XDK builds a standard Cordova app, so solutions that work with Cordova or PhoneGap should work for the XDK, as well.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page