I am trying to implement this:
I have this error:
Admob - prepare for ios14 warning email?
today i got an email from google that i need to prepare my apps for ios14. actually i am running ios14 beta5 and my apps run fine so what do we need to do now? https://developers.google.com/admob/ios/ios14
www.b4x.com
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
'Load Layout
'...
Dim no As NativeObject = Me
no.RunMethod("requestIDFA", Null) '<< Error
Wait For GAD_TrackingAuthorization (Status As Int)
analytics.Initialize
analytics.SendEvent("login", CreateMap ("additional parameter": 100))
IAd.Initialize("iad", vp.ID_INTERSTICIAL)
IAd.RequestAd
End Sub
I have this error:
B4X:
*** mainpage: B4XPage_Created
requestIDFA
Error occurred on line: 234 (B4XMainPage)
Method not found: requestIDFA, target: [_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=
, _clvmenudrawer=, _lbldrawericono=<B4XViewWrapper: <UILabel: 0x103c411d0; frame = (8 0; 50 40); text = ''; clipsToBounds = YES; userInteractionEnabled = NO; animations = { bounds.origin=<CASpringAnimation: 0x282572e00>; bounds.size=<CASpringAnimation: 0x282572e20>; position=<CASpringAnimation: 0x282572e80>; }; layer = <_UILabelLayer: 0x2806589b0>>>, _lbldrawertexto=<B4XViewWrapper: <UILabel: 0x103c41810; frame = (66 0; 958 40); text = 'Política de Privacidad'; clipsToBounds = YES; userInteractionEnabled = NO; animations = { bounds.origin=<CASpringAnimation: 0x282573100>; bounds.size=<CASpringAnimation: 0x282573120>; position=<CASpringAnimation: 0x282573180>; }; layer = <_UILabelLayer: 0x280658d20>>>
, _mostrarmarcadorcentrado=0, _iad=<B4IAdInterstitial: 0x282560e80>, _app=<B4IApplicationWrapper: (null)>
, _mailc=<B4IMailComposer: (null)>, _mystore=<B4IStore: 0x282745f70>, _analytics=<iFirebaseAnalytics: 0x282745f80>
, _consent=<B4IConsentManager: 0x282561020>, _lblinfo1=<B4ILabelWrapper: (null)>, _lblinfo2=<B4ILabelWrapper: (null)>
...; userInterac (message truncated)...
Stack Trace: (
CoreFoundation 373EC2DD-3A29-3E74-B85D-BE4EE925167A + 1159484
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation 373EC2DD-3A29-3E74-B85D-BE4EE925167A + 117344
MyApp +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 368
MyApp -[B4INativeObject RunMethod::] + 216
MyApp -[ResumableSub_b4xmainpage_B4XPage_Created resume::] + 2812
MyApp -[b4i_b4xmainpage _b4xpage_created::] + 548
CoreFoundation 373EC2DD-3A29-3E74-B85D-BE4EE925167A + 1178464
CoreFoundation 373EC2DD-3A29-3E74-B85D-BE4EE925167A + 5600
MyApp +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
MyApp -[B4ICommon CallSubDebug4::::] + 1080
MyApp -[B4ICommon CallSubDebug2::::] + 372
MyApp -[b4i_b4xpagesmanager _createpageifneeded::] + 1152
MyApp -[b4i_b4xpagesmanager _showpage::] + 828
MyApp -[b4i_b4xpagesmanager _addpage:::] + 1428
MyApp -[b4i_b4xpagesmanager _addpageandcreate:::] + 640
MyApp -[b4i_b4xpagesmanager _initialize:::] + 1892
MyApp -[b4i_main _application_start:] + 744
CoreFoundation 373EC2DD-3A29-3E74-B85D-BE4EE925167A + 1178464
CoreFoundation 373EC2DD-3A29-3E74-B85D-BE4EE925167A + 5600
MyApp +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
MyApp -[B4IShell runMethod:] + 448
MyApp -[B4IShell raiseEventImpl:method:args::] + 2172
MyApp -[B4IShellBI raiseEvent:event:params:] + 1580
MyApp __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib 16C9F613-7AE3-32CE-BA3A-B0DCF0464F0E + 393904
libdispatch.dylib 16C9F613-7AE3-32CE-BA3A-B0DCF0464F0E + 397976
libdispatch.dylib 16C9F613-7AE3-32CE-BA3A-B0DCF0464F0E + 64740
CoreFoundation 373EC2DD-3A29-3E74-B85D-BE4EE925167A + 631152
CoreFoundation 373EC2DD-3A29-3E74-B85D-BE4EE925167A + 607696
CoreFoundation CFRunLoopRunSpecific + 572
GraphicsServices GSEventRunModal + 160
UIKitCore 7E4F912A-868A-3669-96D1-6D89F785509F + 11727728
UIKitCore UIApplicationMain + 164
MyApp main + 128
libdyld.dylib 19E502BE-AFC1-3E00-AD3F-D28C0AE1287E + 4416
)