I am developing a hybrid app for Android in JavaScript and C++.
I am using MoSync and Inmobi. I receive the ads from Inmodi server, but I do not succeed to capture the cookie and open it in a default browser.
The links to GoogleStore are broken.
I am very new to this monetizing.
Can somebody please give me a code example to how to capture the dynamically passed cookie as a string in MoSync and how to pass it from my Index.html and to main.cpp?
Thanks!
Related
I'm trying to develop an offline android app using simple html, css and javascript. I use website2apk software to convert the local html files to a standalone apk file.
My app contains a tariff of some random products. What i need is to notify (in-app notification) my app user if there is any update to the app.
For example, when user get connected to internet the app should automatically check for updates and if there is any update available, a warning should appear on top of the home page which says "New Update Available" which will be linked to mysite.com/newversion.apk .
Can someone suggest me what to do for this?. I can only depend Webview and pure javascript, which means no jquery.
I'm sorry for my bad English. Thanks in advance.
The site which hosts your apk should have an api so you can check from your app if there is any newer version available.
A possible solution would be to add a file (for example a json file) which contains the actual version of your app. Then you can make a web request in your app to get the file data.
Example:
get 'http://www.yourwebsite.com/appversion.json'
Hello Everyone and thanks for taking the time to answer my question!
I want to create a simple app to display up to date information to our client. The App should check the latest "data" on the server every time the aplication start and download it to the client. That way the app will be able to use that "data" to show the information.
Does anyone know how I can do that with only JavaScript or maybe a JSON file and HTML5, or do you have any suggestion the best way to do something like that?
Thank you in advance!
You can generate JSON on yor server and parse that on the mobile device to display the data.
It's generally better to use native code instead of wrapping a HTML Application into your Android App. That way you can also use Google Material Design.
Assuming you don't want to write a separate native app for both Android and IOS, you could create a single mobile application using PhoneGap that is just a single HTML page with Javascript that does an XHR call to your server when it loads and stores the response JSON locally. PhoneGap allows you to compile versions for IOS and Android from a single codebase.
With PhoneGap there is a handler that gets called when the app loads that you can use:
function onDeviceReady() {
$.getJSON("http://yourserver/yourfile.json", function( data ) {
//do whatever you want with the data to store it
})
}
I have a html 5 single url based app (written using slingshot), which has features of sending email to a specific date and time based on user requirements. I used android webview to access the app. The email functionality explained above need to be transferred to android local notification. Setting up notification is not the issue, the issue is how to get the web layer json data in my android native layer to set the local notification.
Not sure if I can use javascript interface as i am not going to call any method from my web app. The save button i have in my web app will trigger the json dada which i want to capture in android layer. I was thinking to user intent filter to capture the url scheme but didn't really find any good example as most of the example is showing local html file coming from asset directory. But in my case i have a html 5 single url app (written using slingshot) triggering the data when save button is getting click.
didn't really find any good references stuck here , please help.
I'm developing a PhoneGap/Cordova app which is acting as a wrapper to load and display an external URL to make a mobile website into an app using the code below:
window.open('http://www.website.com', '_self', 'location=no');
There are some elements of the mobile website which I'd like to remove on load, which aren't applicable when viewing in the app (such as "view full site").
Is there any way to detect, from the external website's JavaScript, if the page is being viewed inside a PhoneGap/Cordova app?
In the end, I used a query string parameter on the PHP page to inform it that it was being loaded inside an app.
I then used a cookie to remember it for the session and load some Javascript code if the query string is defined or if the cookie is set.
I am fairly new to the development world. I need to built an app writing javascript on Titanium that should run on iOS as well as Android using a single codebase. I am currently targeting iPhones at the moment. The app is about a shop that is into selling traditional clothes and letting interested people know about the collection that they have. Any idea about the architecture that i should decide. Since it is quite logical that the user will update his collection of clothing frequently how should i go about it? Should i give him the client application that will run on his pc that he will make use of to update his changes? Will Appstore accept such apps? Any other points i need to know as i need to start the development asap.
I think the best solution will be an App with Web as backend. Means you can put the data in Web, and your app used particular URL's for fetching the required data in the form of XML and JSON.
Your app will parse the data and display it on the view.
If there is new images in the server, your app will download it to the iOS device.
Another option is an app which deals with HTML pages. Means you need to display the page on a web view. If you need to update the data, you can update it on the server. Also it can be of two type
Your app will load the page from remote server, using the url
Your app will download the page to iOS device and display it from there, until a new change occurs.
If you are interested in HTML and CSS, PhoneGap is another cross platform, that can also help you.
for rapid devlopment you can use python django... in your case you can use Django-tastypie for backend will be good choice.since using django you can develop it in quick time and the tastypie has api services which can used easily for retrieval and sending data
you can go through this
http://django-tastypie.readthedocs.org/en/latest/