I would need to implement admob on my webview app - webview

How can I initialize advertising when a certain URL is visited? Can I use the initialize() method by calling it from a web page (URL load)? I cannot show Google Adsense advertising in my app because I have read that it violates the program policies. Website was implemented in php. Thanks in advance

Related

Admob Reward Ads for Webview

I am developing an application and would like to add award-winning advertising to the application. If the ad is followed, it will redirect to WebView. If the ad is not tracked, let's not redirect it. I'm new at this. I'd appreciate it if you could explain it in a clear way.
Note: I'm sorry for the bad english.

Why useragents are different in UIWebview and Safari Browser ?

I wanted to know why user-agent call is different in UIWebview inside the application and in safari browser ?
And also since I am using UIWebView in my application can I use apple pay which is already on the webpage of the UIWebView or Do I need to use Passkit for it ?
Safari is built by Webkit - http://www.apple.com/au/safari/Apple doc on Safari
As for apple pay - you can use Java, CSS etc. to access and/or create the Apple Pay session. Apple have lots of guidance docs on the matter
Apple Pay Session
Apple Pay JS
Hope this gives you some guidance

How to call out to another app within an app - iOS

We use an LMS calles Canvas by instructure. Our students access the LMS via the iOS app, however we would like to be able to call out from this app to another app (e-book reader).
We just want to be able to select a link which will redirect us to the app.
We have a coder in our staff, and we would really appreciate any advise on how to achieve the above.
You can communicate with URL Schemes between apps Apple Inter-App Communication
And here is Tutorial explaining URL Schemes implementation.
If you have access to the e-book reader app's codebase, this is simple to achieve by specifying a URL Scheme this app may respond to (or, alternatively, if you happen to know what URL Schemes this app supports). Then it will be as simple as calling out a URL of a corresponding format from within the iOS app your students use.
Alternatively, if your app provides access to the documents of some sort, you could look into UIDocumentInteractionController that can add "Open in..." functionality to your app, allowing app users to open a document in an arbitrary app that supports this file format.

Does app-argument to iOS application get passed to app on install from App Store?

I have developed an application and now want to use it like when the user will install the app there should be some parameter to tell that from which place user got the Application URL, like the one in Android
https://play.google.com/store/apps/details?id=itcurves.mars.regency&referrer=newyourktimes
where referrer tells that application linked is opened from newyouktimes.
I want the application to be install from App Store with some additional parameter on downloading link to indicate referrer. I googled a lot and find that there is some app-argument through which we can achieve this goal but could not find its implementation or some example.
Please give some example to get parameter within the application when user downloads application from App Store.
How can I achieve this . to send parameter to app while installation from App Store?
This functionality is not provided by the Apple App Store
Google Adwords has a library that can be used to do conversion tracking.
https://developers.google.com/app-conversion-tracking/docs/ios/using-sdk
Apple added support for app-arguments to their Smart Banners.
<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">
You can read more here but the gist of it is that your referrer can be one of the app-arguments.

How to use Apple (in app purchases) in UIWebView?

Is there any way to use Apple In App purchases from a UIWebView inside the application ?
Since i want to use a web view to load an external website and use in app purchases as payement method inside the app.
You can call Objective-C methods from UIWebView. This you can do by trapping your custom urls in the shouldStartLoadWithRequest: method. As well, you can call JS methods in HTML from Objective-C code (stringByEvaluatingJavaScriptFromString:). Details are here.
I think it is possible to use Apple's InApp purchase from inside UIWebView, though it depends on your exact requirements. As long as you use Apple's payment gateway (so that they get their 30% cut :)) it's okay.
I don't think it works that way. It's a Cocoa touch API and has to be called from a Cocoa object / controller.
It also uses delegates to communicate back with your app.
Also sounds like what you are trying to do is use the in app purchase as your payment system for a web app. Might be outside the terms of service of AppStore.
Try Google In App Payments?

Resources