[Unity Ads] Need help testing new extension on IOS

yoplalala

  • *
  • Posts: 1479
I'm rewriting the old unity app extensions.

I have a IOS simulator, but on there unityads and prints don't work, so I have no idea , it works or not.


Here is the extension :


What I need to know :
- do the video appear when you show the unity ads ?
- what happens when you sho the rewarded unity ads ?
When you click on the different buttons ?

And of course the error messages if there are any ;)
 

PS: if you don't have a unity account

you can put this ios app id:   1548948
and show the placement id :    video


« Last Edit: September 16, 2018, 07:43:41 am by yoplalala »

FMStudioGameDev

  • *
  • Posts: 170
Hi there,
it's great someone is working on new ad extensions! Unfortunately nothing works for me with your Unity Ads extension  :'(
Here the list of issues I found:
  • even if setting test mode on  it tries to display a regular ad
  • video ad shows for just a sec then the app crashes (see below for logs)
  • even if leaving alert fields empty for rewarded ads it shows and alert (with empty title and message)
  • after pressing yes on the alert no ad shows and app crashes
  • no debug prints seems to appear in the logs (even if setting debug mode on)

Using Stencyl build 9974, tested on iPhone 5c running iOS 10.3 and on iPhone 6s running iOS 11.4, same behaviour.

Here's relevant log:
Code: [Select]
2018-09-16 14:34:41,627 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:71: UnityAds : iOS INIT Exception: Null Function Pointer
2018-09-16 14:34:46,084 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy] Engine.hx:1870: Switching to scene 1
2018-09-16 14:34:54,827 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy] libc++abi.dylib: terminating with uncaught exception of type NSException
2018-09-16 14:34:54,860 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy] Process 10206 stopped
2018-09-16 14:34:54,860 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy] * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
2018-09-16 14:34:54,860 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #0: 0x1adf1acc libsystem_kernel.dylib`__pthread_kill + 8
2018-09-16 14:34:54,860 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy] libsystem_kernel.dylib`__pthread_kill:
2018-09-16 14:34:54,860 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy] ->  0x1adf1acc <+8>:  blo    0x1adf1ae4                ; <+32>
2018-09-16 14:34:54,860 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     0x1adf1ad0 <+12>: ldr    r12, [pc, #0x4]           ; <+24>
2018-09-16 14:34:54,860 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     0x1adf1ad4 <+16>: ldr    r12, [pc, r12]
2018-09-16 14:34:54,860 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     0x1adf1ad8 <+20>: b      0x1adf1ae0                ; <+28>
2018-09-16 14:34:54,860 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy] Target 0: (testGAme) stopped.
2018-09-16 14:34:55,832 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy] * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
2018-09-16 14:34:55,832 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]   * frame #0: 0x1adf1acc libsystem_kernel.dylib`__pthread_kill + 8
2018-09-16 14:34:55,832 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #1: 0x1ad8695a libsystem_c.dylib`abort + 108
2018-09-16 14:34:55,832 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #2: 0x1a88b708 libc++abi.dylib`<redacted> + 108
2018-09-16 14:34:55,832 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #3: 0x1a8a2552 libc++abi.dylib`<redacted> + 270
2018-09-16 14:34:55,832 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #4: 0x1a8ab31e libobjc.A.dylib`<redacted> + 234
2018-09-16 14:34:55,833 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #5: 0x1a89f98e libc++abi.dylib`<redacted> + 78
2018-09-16 14:34:55,833 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #6: 0x1a89f492 libc++abi.dylib`__cxa_rethrow + 90
2018-09-16 14:34:55,833 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #7: 0x1a8ab1aa libobjc.A.dylib`objc_exception_rethrow + 42
2018-09-16 14:34:55,833 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #8: 0x1b531230 CoreFoundation`CFRunLoopRunSpecific + 600
2018-09-16 14:34:55,833 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #9: 0x1b530fd0 CoreFoundation`CFRunLoopRunInMode + 104
2018-09-16 14:34:55,833 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #10: 0x1ccdbb40 GraphicsServices`GSEventRunModal + 80
2018-09-16 14:34:55,833 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #11: 0x208b9a52 UIKit`UIApplicationMain + 150
2018-09-16 14:34:55,833 INFO  [Thread-36] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #12: 0x002e3cbe testGAme`main + 166
2018-09-16 14:34:55,862 DEBUG [pool-1-thread-5] stencyl.sw.util.Util: Process 'ios-deploy' exited with code: 254

« Last Edit: September 16, 2018, 06:02:05 am by FMStudioGameDev »

yoplalala

  • *
  • Posts: 1479
Quote
it's great someone is working on new ad extensions!
Yes I will put it on the forum once it's finished.  If you have bought Robin's extension. You can just put the files that were in Robin's extension , the ndll folder , into this ndll folder of this forum.

Code: [Select]
Unfortunately nothing works for me with your Unity Ads extension  :'(Yeah , normal. But with your help, it will work ;)


Thanks, exactly what I need :)


You can now try again. It still won't work, but I'll have some new traces :) which will help.

FMStudioGameDev

  • *
  • Posts: 170
Okay,  so I added ndll folder from byRobin extension, cleaned the project and tested the new version.
Everything seems to work now, setting test mode on and debug on I see test ads both for video and rewarded, here is what i see in the logs:
Code: [Select]
2018-09-16 18:42:42,367 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: adisfetch
2018-09-16 18:42:42,368 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:231: UnityAds : ad is fetch
2018-09-16 18:42:42,391 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: adisfetch
2018-09-16 18:42:42,392 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:231: UnityAds : ad is fetch
2018-09-16 18:42:49,082 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Engine.hx:1870: Switching to scene 1
2018-09-16 18:42:50,401 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: videodidshow
2018-09-16 18:42:50,401 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:241: UnityAds : video did show
2018-09-16 18:43:00,802 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: videoisskipped
2018-09-16 18:43:00,802 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:261: UnityAds : video is skipped
2018-09-16 18:43:00,883 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: adisfetch
2018-09-16 18:43:00,884 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:231: UnityAds : ad is fetch
2018-09-16 18:43:00,884 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: adisfetch
2018-09-16 18:43:00,884 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:231: UnityAds : ad is fetch
2018-09-16 18:43:09,045 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: rewardeddidshow
2018-09-16 18:43:09,046 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:246: UnityAds : rewarded video did show
2018-09-16 18:43:20,550 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: rewardedcompleted
2018-09-16 18:43:20,550 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:256: UnityAds : rewarded completed
2018-09-16 18:43:20,559 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Engine.hx:1870: Switching to scene 0
2018-09-16 18:43:20,584 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: adisfetch
2018-09-16 18:43:20,585 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:231: UnityAds : ad is fetch
2018-09-16 18:43:20,638 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: adisfetch
2018-09-16 18:43:20,638 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:231: UnityAds : ad is fetch
2018-09-16 18:43:27,645 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Engine.hx:1870: Switching to scene 1
2018-09-16 18:43:28,670 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: videodidshow
2018-09-16 18:43:28,670 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:241: UnityAds : video did show
2018-09-16 18:43:41,433 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: videocompleted
2018-09-16 18:43:41,433 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:251: UnityAds : video is completed
2018-09-16 18:43:41,472 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: adisfetch
2018-09-16 18:43:41,472 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:231: UnityAds : ad is fetch
2018-09-16 18:43:41,501 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] Send Event: adisfetch
2018-09-16 18:43:41,501 INFO  [Thread-66] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:231: UnityAds : ad is fetch
Setting test mode on I have real ads for both video and rewarded.
Setting debug off I got no changes (same traced activities on the logs)
Rewarded ads works as expected, no alert window if title is empty, alert with text if it is filled and "discard" or "watch" as option buttons. The events are triggered correctly.

Good job!

yoplalala

  • *
  • Posts: 1479
Okay,  so I added ndll folder from byRobin extension, cleaned the project and tested the new version.


Sorry it's normal that it works with robin ndll, but can you try with mine and copy the error codes ? :)

I told about Robin's ndll so that people that bought it can use it and not wait for my extension to be corrected. But still I have to correct mine, so that it can be accessible to everyone and so that when there are  future releases of unity ads, it will be easier to update


FMStudioGameDev

  • *
  • Posts: 170
Sorry it's normal that it works with robin ndll, but can you try with mine and copy the error codes ? :)
Sorry, I misunderstood, mainly because the when I tried with your libraries I got the same results as the first version.
Here are the crash logs when displaying video ads
Code: [Select]
[Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy] UnityAds.hx:93: UnityAds : iOS INIT notifyListeners Exception: Null Function Pointer
2018-09-17 07:20:40,751 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy] Engine.hx:1870: Switching to scene 1
2018-09-17 07:20:42,650 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy] Process 10469 stopped
2018-09-17 07:20:42,650 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy] * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
2018-09-17 07:20:42,650 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #0: 0x0027e742 testGAme`sendEvent + 84
2018-09-17 07:20:42,650 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy] testGAme`sendEvent:
2018-09-17 07:20:42,650 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy] ->  0x27e742 <+84>: ldr    r1, [r0]
2018-09-17 07:20:42,650 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     0x27e744 <+86>: cbz    r1, 0x27e74a              ; <+92>
2018-09-17 07:20:42,650 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     0x27e746 <+88>: ldr    r0, [r1]
2018-09-17 07:20:42,651 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     0x27e748 <+90>: b      0x27e750                  ; <+98>
2018-09-17 07:20:42,651 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy] Target 0: (testGAme) stopped.
2018-09-17 07:20:43,606 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy] * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]   * frame #0: 0x0027e742 testGAme`sendEvent + 84
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #1: 0x00978f72 testGAme`__58+[UADSApiListener WebViewExposed_sendStartEvent:callback:]_block_invoke + 150
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #2: 0x1acf1796 libdispatch.dylib`<redacted> + 10
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #3: 0x1acf1782 libdispatch.dylib`<redacted> + 22
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #4: 0x1acf5d04 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 902
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #5: 0x1b5dfd68 CoreFoundation`<redacted> + 8
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #6: 0x1b5dde18 CoreFoundation`<redacted> + 848
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #7: 0x1b5311ae CoreFoundation`CFRunLoopRunSpecific + 470
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #8: 0x1b530fd0 CoreFoundation`CFRunLoopRunInMode + 104
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #9: 0x1ccdbb40 GraphicsServices`GSEventRunModal + 80
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #10: 0x208b9a52 UIKit`UIApplicationMain + 150
2018-09-17 07:20:43,607 INFO  [Thread-15] stencyl.sw.util.StreamGobbler: [ios-deploy]     frame #11: 0x0025b35e testGAme`main + 166
2018-09-17 07:20:43,633 DEBUG [pool-1-thread-2] stencyl.sw.util.Util: Process 'ios-deploy' exited with code: 254

« Last Edit: September 16, 2018, 10:36:03 pm by FMStudioGameDev »

yoplalala

  • *
  • Posts: 1479
Brilliant thanks !
I found the mistake. When I'll have access to the my mac simulator , I'll compile it again.

yoplalala

  • *
  • Posts: 1479
New version with the error corrected.
For the title, etc of the window. I'll put this part pf the code later, where eveything else works.
I wanted to make it possible to change the title of the buttons.