I added the smart app banner meta tag to my page and it was working fine at one point yesterday. However, now the banner only appears as a gray bar with no content in it. It appears to try to load something for a second, but then stops. Not sure what I changed in the code that would break it. Link for screenshot included below or see for yourself live:
http://grahamgram.com
the reason could be:
you are using a wrong app-id
your app and your apple-id (the one you use for app store) belong to different countries
you are using a proxy to test this smart banner in your dev env (so itunes cannot get the infomation, you can try to download the app from app store with proxy)
other reasons like the first answer
I think the service is currently down.
Been having the same problem myself, have just tested the ted.com site and theirs doesn't load either.
Hope that helps!
Related
I've created a new App in Delphi 10.3.3 Community Edition, placed a TBannerAd, aligned it to bottom and I have a Button which loads the Ad (BannerAd1.AdUnitID:='ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX'; BannerAd1.LoadAd;). I tried The TBannerAd with the sizes "auto" and "small" but when I click the button on the running App no Ad is shown. Everything I do in my App works, but there are no ads shown. I used a Huawei ALE21 with stock rom (Anndroid 6) and a Samsung SM-A605FN/DS (A6 plus) also with stock rom to test the App. I tried test mode and normal mode, but in both cases there is no ad shown. I don't even get an error and I don't have any email from admob which tells me that it doesn't work... On my old computer (Same Delphi version and same mobile phones) I got ads to work. Now on a fresh installed Windows 10 with nothing more than Delphi and a few normal Apps I can't make an app with ads on it. And I don't use any ad blocking app on my phones. They're both stock rom.
Can anyone give me a hint why I can't display any ads without getting an error?
UPDATE: Google sent me an email a few days later saying my app code should change and the ads are not shown until my app fulfills requirements and some stuff like that.. so I guess the issue was I was trying just to show an ad to test ads are working and there was no real content in my app. After trying it a few weeks later in a real app I was trying to get ads shown in it it worked.. So sorry for asking this question. I just didnt know Google dooesnt show ads on blank apps..
Try setting the BannerAd's alignment to bottom and ensure that it has sufficient height. Start with the small size of Ad. Use the OnDidFail and OnDidLoad to debug. In my case I fixed the issue by the alignment and choosing small or medium size of Ad. Couldn't get the large or auto size to work so I am sticking with medium. Also, my BannerAd.TestMode is set to true as I am using the test ID provided by Google (I suppose you have done the same).
did you already set True on Project > Option > Application > Entitlement List > AdMob Service
I guess the simple answer is that there just are no ads to be shown available.. I get an error 3 code, which means the google ad server has nothing for me to show.. I think I should try other phones/accounts as well to get some ads running
I have a React Native app that pulls image urls from Amazon. I store the urls in a database, and reference them later as the source of my images.
After building up a good amount of entries in the database from several users, and releasing my app on Android, I decided to set my focus on iPhone. I'm now noticing that some images are not showing. So I go in and make sure that the urls are correct, and they are. Plus they're still working on the Android app just fine.
I then open Safari on my mac and plug the url into my browser. Same thing, it doesn't show up (Must be an Apple thing). An image such as this one...
https://images-na.ssl-images-amazon.com/images/I/41OAg8ggg8L._AC_SY400_FMwebp_.jpg
Will not show up... but an image such as this... with a similar url will...
https://images-na.ssl-images-amazon.com/images/I/51sEOLVrs5L._AC_SY400_ML2_.jpg
I'm essentially getting a view like this on my app...
I just know this has something to do with my lack of understanding on how images now work in iOS, I've found that much through Google. I just don't know what. Can someone please explain? Thanks in advance!
I had Universal Links working on my iOS 9 app. If I clicked on a UL from an email or text message, it would launch my app as expected.
Then I added a QR Code Reader and used openURL() open the UL embedded in the QR Code from within my app (which was supposed to be handled by the app itself).
On one test run, the URL embedded in the QR code was malformed: it had a CR/LF at the end of it, and when the app tried to open it, it crashed (I do not have the crash log/trace unfortunately).
As I researched the crash I realized that openURL() is not designed to work with UL, so I fixed the code to have my app handle the URL differently, but now none of the ULs work with my app anymore: what used to work from an email or text message doesn't anymore (it launches Safari instead of my app).
I install my app via TestFlight and I can see from my backend that the apple-app-site-association file is being pulled, but it still won't work.
Important data (that's how I know the problem is with the state on that specific phone): the same app on a different phone opens ULs correctly.
It's as if the one bug I ran into put the phone in a state that will always launch Safari for those URLs no matter what.
It is the only phone that exhibits this problem.
What I tried without success:
uninstalling the app completely
reboot
Not sure what to try next. Thanks in advance for the help.
You probably clicked on the link in the top right corner of the status bar to open one of your ULs in Safari. After that all subsequent ULs will open in Safari.
In Safari, pull down the page until you see the Smart-App-Banner at the top. Then click on 'Open' and ULs should work again.
I think I already know the answer to this ("can't be done"), but I figured I'd see what people think...
On my client's website they're posting files for download that specifically need to be viewed on iPads using the Cadwork Viewer app:
https://itunes.apple.com/us/app/cadwork-viewer/id505161598?mt=8
You can't open the file on an iPad unless you have that app, and I'm wondering if when clicking on the file to initiate download if there's a way to scan the device to see if Cadwork Viewer is already installed. If so, proceed with the download of the file. If not, pop up a notice "This file requires the Cadwork Viewer app, download it here from iTunes." Something like that.
Again, I think this is just not doable, but hey...there's all sorts of things I don't know!
Thoughts?
Check out this link: https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
You can add a banner to the mobile site that lets you open the app from Safari.
Explanation from Apple:
If the app is already installed on a user's device, the banner
intelligently changes its action, and tapping the banner will simply
open the app. If the user doesn’t have your app on his device, tapping
on the banner will take him to the app’s entry in the App Store.
This should be a good starting place.
I have run into several problems with iOS development through phonegap recently, and unusually people around here have been unable to discuss these issues and even together we have (for the first time I have ever seen) not had a single comment or answer for these topics...
See https://stackoverflow.com/questions/14707936/make-a-page-that-redirects-back-to-ios-phonegap-app and iOS broswer data -> Cache & Cookie for Phonegap App / Session?...
However, I have found "solutions" to get around these, but its by no means answers to the issues in question which are still outstanding... just simply doing it a completely different way.
However, despite loosing web-view in phonegap, in an attempt to get around https://stackoverflow.com/questions/14707936/make-a-page-that-redirects-back-to-ios-phonegap-app I now have some issue that are outstanding...
I need to be able to navigate back to my App from the web-system !!!
However, I have no idea how. I have read info on creating URL Schema, but I am not sure if this is even possible through build.phonegap at all... and it seems faily complicated. Does anybody know of a way for iOS safari to do one of two things
Either
Open the app that is running in the background
or
close the current browser tab and navigate back to the app in the background.
The closing tab idea would be good, but not essential
Look forward to everyone thoughts and opinions on this one...
Henry
You can create an url scheme for any application you make yourself.
See tutorial here
It's not as terribly complicated as one would think, and the required objective-c code is minimal.
Once you have done this, you can use your own url scheme to launch your phonegap application from safari with a hyperlink.
This would not close the tab (you could do this with javascript if you wanted to)
but does put safari in the background, and opens your phonegap app.
(whether it is already running in the background or not)
It is even possible to pass data to the app using your url scheme.
It is not currently possible using PhoneGap Build in 2.2 and previous. Potentially a feature top be released in newer versions of Cordova/Phonegap