Error when loading rewarded video

793 views
Skip to first unread message

Law Chi Hon

unread,
Nov 17, 2019, 7:20:31 PM11/17/19
to Google Mobile Ads SDK Developers
I tried to run the rewarded video example in https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Swift/admob/RewardedVideoExample
After updating the app id and ad unit id, I'm still having the following error:

2019-11-17 16:15:05.462106-0800 RewardedVideoExample[29610:4726160]  - <Google>[I-ACS025031] AdMob App ID changed. Original, new: (nil), ca-app-pub-2991031448749727~8792139335
2019-11-17 16:15:05.535673-0800 RewardedVideoExample[29610:4726160] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-11-17 16:15:05.536135-0800 RewardedVideoExample[29610:4726160] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-11-17 16:15:05.536411-0800 RewardedVideoExample[29610:4726169] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-11-17 16:15:05.537644-0800 RewardedVideoExample[29610:4726160] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-11-17 16:15:05.538039-0800 RewardedVideoExample[29610:4726169] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-11-17 16:15:05.538911-0800 RewardedVideoExample[29610:4726169] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-11-17 16:15:05.539077-0800 RewardedVideoExample[29610:4726160] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-11-17 16:15:05.564369-0800 RewardedVideoExample[29610:4726158]  - <Google>[I-ACS023007] Analytics v.60103000 started
2019-11-17 16:15:05.565276-0800 RewardedVideoExample[29610:4726158]  - <Google>[I-ACS023008] To enable debug logging set the following application argument: -APMAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2019-11-17 16:15:05.890991-0800 RewardedVideoExample[29610:4726180] WF: === Starting WebFilter logging for process RewardedVideoExample
2019-11-17 16:15:05.891186-0800 RewardedVideoExample[29610:4726180] WF: _userSettingsForUser : (null)
2019-11-17 16:15:05.891292-0800 RewardedVideoExample[29610:4726180] WF: _WebFilterIsActive returning: NO
2019-11-17 16:15:06.053547-0800 RewardedVideoExample[29610:4726109] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600000482bc0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2019-11-17 16:15:25.802438-0800 RewardedVideoExample[29610:4726109] -[UIAlertView initWithTitle:message:delegate:cancelButtonTitle:]: unrecognized selector sent to instance 0x7ff9c9d15b50
2019-11-17 16:15:25.812866-0800 RewardedVideoExample[29610:4726109] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIAlertView initWithTitle:message:delegate:cancelButtonTitle:]: unrecognized selector sent to instance 0x7ff9c9d15b50'
*** First throw call stack:
(
0   CoreFoundation                      0x00007fff23b98bde __exceptionPreprocess + 350
1   libobjc.A.dylib                     0x00007fff503b5b20 objc_exception_throw + 48
2   CoreFoundation                      0x00007fff23bb9704 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3   UIKitCore                           0x00007fff47190773 -[UIResponder doesNotRecognizeSelector:] + 302
4   CoreFoundation                      0x00007fff23b9d7bc ___forwarding___ + 1436
5   CoreFoundation                      0x00007fff23b9f6c8 _CF_forwarding_prep_0 + 120
6   RewardedVideoExample                0x000000010514a4d3 $sSo11UIAlertViewC5title7message8delegate17cancelButtonTitleABSSSg_AGypSgAGtcfcTO + 659
7   RewardedVideoExample                0x0000000105147db4 $sSo11UIAlertViewC5title7message8delegate17cancelButtonTitleABSSSg_AGypSgAGtcfC + 100
8   RewardedVideoExample                0x0000000105147ca5 $s20RewardedVideoExample14ViewControllerC9playAgainyyyXlF + 837
9   RewardedVideoExample                0x0000000105147e00 $s20RewardedVideoExample14ViewControllerC9playAgainyyyXlFTo + 64
10  UIKitCore                           0x00007fff47163d19 -[UIApplication sendAction:to:from:forEvent:] + 83
11  UIKitCore                           0x00007fff46b55599 -[UIControl sendAction:to:forEvent:] + 223
12  UIKitCore                           0x00007fff46b558e3 -[UIControl _sendActionsForEvents:withEvent:] + 398
13  UIKitCore                           0x00007fff46b54842 -[UIControl touchesEnded:withEvent:] + 481
14  UIKitCore                           0x00007fff4719e21f -[UIWindow _sendTouchesForEvent:] + 2604
15  UIKitCore                           0x00007fff4719fb26 -[UIWindow sendEvent:] + 4596
16  UIKitCore                           0x00007fff4717b1a7 -[UIApplication sendEvent:] + 356
17  UIKitCore                           0x00007fff471faa18 __dispatchPreprocessedEventFromEventQueue + 6847
18  UIKitCore                           0x00007fff471fd4de __handleEventQueueInternal + 5980
19  CoreFoundation                      0x00007fff23afbac1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
20  CoreFoundation                      0x00007fff23afb9ec __CFRunLoopDoSource0 + 76
21  CoreFoundation                      0x00007fff23afb1c4 __CFRunLoopDoSources0 + 180
22  CoreFoundation                      0x00007fff23af5ecf __CFRunLoopRun + 1263
23  CoreFoundation                      0x00007fff23af56b6 CFRunLoopRunSpecific + 438
24  GraphicsServices                    0x00007fff3815cbb0 GSEventRunModal + 65
25  UIKitCore                           0x00007fff47162a67 UIApplicationMain + 1621
26  RewardedVideoExample                0x000000010514b03b main + 75
27  libdyld.dylib                       0x00007fff5123bcf5 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 


Mobile Ads SDK Forum Advisor Prod

unread,
Nov 18, 2019, 1:19:29 AM11/18/19
to lawchi...@gmail.com, google-adm...@googlegroups.com
Hi there, 

Thank you for reaching out to us. Let me do the best I can to assist you in this.

With regard to to your concern, could you please add the otherButtonTitles parameter with "No" value on UIAlertView. Kindly refer to the code snippet below.

UIAlertView(title: "Reward based video not ready",
message: "The reward based video didn't finish loading or failed to load",
delegate: self,
cancelButtonTitle: "Drat", otherButtonTitles: "No").show()


Regards,
Teejay Pimentel
Mobile Ads SDK Team



 

ref:_00D1U1174p._5001UOCOc8:ref

Garima Bothra

unread,
Apr 4, 2020, 11:01:58 AM4/4/20
to Google Mobile Ads SDK Developers
Facing the same issue when using GoogleMobileAds SDK iOS

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 6, 2020, 1:10:32 AM4/6/20
to gaarim...@gmail.com, google-adm...@googlegroups.com

Hi Garima,

 

Thank you for reaching out and for sharing your concern.

 

In my initial testing, I wasn't able to reproduce the issue using our rewarded video sample app. Thus, could you confirm if this behavior is still occurring at your end? If it is, would it be possible to add an otherButtonTitles parameter with "No" value on UIAlertView into your app and see if this would fix the issue? Kindly refer to the code snippet below for reference.

 

UIAlertView(title: "Reward based video not ready",

message: "The reward based video didn't finish loading or failed to load",

delegateself,

cancelButtonTitle: "Drat", otherButtonTitles: "No").show()

 

However, if the above workaround doesn't work, then could you please share with us a sample project file, so we could debug and investigate the issue on our end? You can share this via "Reply privately to author" option.

 

 

Regards,

Sherwin Diesta

Mobile Ads SDK Team



ref:_00D1U1174p._5001UZWASR:ref
Reply all
Reply to author
Forward
0 new messages