1

In my CodenameOne project I defined google ads' unit ids for both android and ios. There is no problem with the android version. But in the ios version the ads do not show up, although it did for a while, it stopped suddenly. Any ideas where I can check what's going wrong?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Babur
  • 115
  • 3

3 Answers3

0

Check your ad unit id is active or not.

shubham bansal
  • 796
  • 1
  • 5
  • 13
0

See https://stackoverflow.com/a/39753120/756809 I'm not sure if it's the right answer but it seems to be related to the HTTPs limits from Apple: https://www.codenameone.com/blog/ios-http-urls.html

Community
  • 1
  • 1
Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • Thanks for the answer. Can I put the built hint – Babur Oct 25 '16 at 14:22
  • just as it is in the properties dialog? ios.plistInject=NSAppTransportSecurityNSAllowsArbitraryLoads – Babur Oct 25 '16 at 14:23
  • That's the idea – Shai Almog Oct 26 '16 at 01:27
  • Nothing helps. Below my settings file: 'codename1.arg.ios.project_type=ios codename1.ios.provision= codename1.arg.android.googleAdUnitId=ca-app-pub-111/222 codename1.arg.ios.googleAdUnitId=ca-app-pub-333/444 codename1.arg.ios.statusbar_hidden=false codename1.languageLevel=5 codename1.vendor=CodenameOne codename1.arg.ios.prerendered_icon=true libVersion=135 codename1.arg.ios.plistInject=NSAppTransportSecurityNSAllowsArbitraryLoads codename1.packageName=com.dagsoft.appl.tagiest codename1.arg.ios.testFlight=true' – Babur Nov 10 '16 at 10:56
0

Problem solved:

when copying ios.plistInject=NSAppTransportSecurity‌​NSAllowsArbitraryLoa‌​ds from websites and pasting it to properties dialog some extra chracters are copied also, something like that: NSAllowsArbitraryLoa**\u200C\u200B**ds Removing them solves the problem

Babur
  • 115
  • 3