how do I make in-app purchases from my javascript application which will be bundled into an apk? I discovered the google javascript api but it only allows you to verify whether purchases have been made, not to make actual transactions. I can't find any third party apps that bundle a hardware accelerated canvas with an HTML5 app, and provide plugins for android/iOS in-app purchases. Is there somewhere I can find the full REST api for the Google Play store?
There is no REST API for in-app billing from Android applications. Your best bet is to write the code in Java and use JavaScript hooks in your HTML app to call them as necessary. Using WebView.addJavascriptInterface, etc.
Related
I'm wondering it's possible to identify android device by web app running on mobile web browser? And this solution have to still working after change or upgrade web browser on this phone.
My second doubt is web app can working offline on phone showing PDF presentations saved in local storage (disk). When I have internet connection I can manually sync presentations (some are removed and some are downloaded).
If PWA app can work like I described above or in this case we need to use (hybrid) mobile app ?
PWAs allow to cache assets and make them available to the users even when they are offline. There are some functionalities that only Native Apps have (eg. access to a device contacts), but they are very close under many other aspects.
I wrote an article about Service Workers and caching strategies where I explain how to cache static assets as well as HTTP GET calls. It is part of a series about PWAs, so you might find it useful to get more insights about this technology.
Have a look at the website what web can do today to have a list of WEB APIs currently available:
I do not know the detail of your requirements, but maybe you do not even need to implement an hybrid app and simply create a PWA.
Im trying to get my Iphones live location to show on a map on my website.
Is there a way to acomplish this easily using HTML5 Geolocation or is it better to use Google Maps Geolocation API, or some other library?
Thanks.
I use Google Maps Geolocation API in WEB APP developed with .NET C #
And it was great
At HyperTrack we have an SDK which you can plugin to your app in as little as 3 lines of code and automatically enable location tracking in your application and view (for free) on our Dashboard. In our Sandbox mode (read: Test Mode) you can track and assign actions for up to 20 users for free as well. This mode also gives you an Action Widget that you can embed anywhere to see the activity of your user(s)/device(s).
For iOS you can visit our iOS Integration Guide.
I have decided to learn how to create Android APK on windows for personal/learning use (Not for Android Play).
My design plan is to load a remote HTML page on android app and allow user to click a few links and then app make a post request to an API to get m3u8 of the video and play it !I already created the HTML web page and have the API access.
So could you guys point me to a beginner tutorial/example and what software and tools I need and which one is easiest to start with (to achieve my design goal)? (I installed PhoneGap but not sure if that is the only tool I need and if it is the easiest path. So I wait for your advice).
Furthermore, does installing java JDK creates any security issues for my PC? (since I heard lots of bad news about Java in past few years.)
If you are going with Phonegap, I would recommend you to first read the phonegap documentation so you can setup a basic phonegap project (phonegap). I would recommend to implement the site functionality inside phonegap instead of just loading an external site; this way you have access to more phone controls than from a web browser. But if it is really a requirement to load the external site, basically, the phone gap would load an empty page that would load your external site using the cordova inappbrowser plugin, here is the github page of this project (inappbrowser).
I started building a Spotify Client for BlackBerry 10 using the Web API and the Play Button Widget but still have not published to the store since I want to clear up things first.
Please can anyone tell me if it's okay to use the Web API and the Play Button Widget in my 3rd Part Spotify Mobile App?
I use the Web API for authorization, loading playlists, tracks, albums etc, and I plan to use the Play Button Widget to play the full song.
I also plan to make money from it via Removing the Ads that I will integrate.
Link the the App's Details and Screenshots: http://forums.crackberry.com/blackberry-10-apps-f274/spo2fy-native-spotify-client-blackberry-10-a-948673/
Can somebody advise please?
Right now the Developer Terms of Use forbid monetisation either directly or via adverts for applications that stream audio. The Developer ToS can be found here.
Also, the Play Button widget doesn't work on mobile platforms like Blackberry - it requires a desktop machine as it remote controls either the Web Player or Desktop client.
Additionally, although not part of your question — your app looks like a direct copy of Spotify's own UI. In general, this isn't a good idea. This isn't a threat per se, but it's close enough to potentially look like an "official" client, which is also forbidden by the ToS.
Tracking events and setting up Analytics for Websites seems easy. You create an account with one of the Analytics service providers like Google. They give you javascript code that you embed in your pages (whichever event you wish to track) and voila..you're done.
I have written a native application for Android phones, which is actually an adaptation of the actual web site. Now, I am required to setup Analytics and tracking for this native application.
Question:
How to do setup a native application for Analytics?
We have Java Script code(not Google Analytics but for some other engine) that works for the original web site. Is there a way to incorporate that in the native application?
I know Android supports Java Script via WebViews(Webkit);my application does not have webviews, it is native!
I have not worked on JavaScript since school so excuse me if I sound naive.
Thanks.
Google Analytics provide a guide for implementation on a mobile device.
Refer to http://code.google.com/apis/analytics/docs/tracking/mobileAppsTracking.html
To get started have a look at this guide from google.