Search Unity

Unity Ads chrashes on Android after changing the Product Name

Discussion in 'Unity Ads & User Acquisition' started by belindadiesslin, Dec 4, 2019.

  1. belindadiesslin

    belindadiesslin

    Joined:
    Jan 27, 2019
    Posts:
    9
    Hello!
    I have build a game for Android and iOS, the first version is public in the Play Store and in the App Store. On Play Store I published with "Project Settings -> Player -> Product Name -> PokerTowerDefense" and on App Store I published with "Project Settings -> Player -> Product Name -> Poker TD". Until now everything works fine and the ads are working on both published versions.
    Now I wanted to release an update for it. When i am building for Android and test it, the App crashes when I want to show an ad. But only if I have the settings at "Project Settings -> Player -> Product Name -> PokerTowerDefense". If I have "Project Settings -> Player -> Product Name -> Poker TD" the ads are working.
    I want to build with "PokerTowerDefense", because the App also uses Application.persistentDataPath for saving Data, but the path changes if I use "Poker TD".

    Here is a Log from the crash:
    Code (CSharp):
    1. 12-04 11:32:58.091: I/UnityAds(1489): com.unity3d.services.ads.UnityAdsImplementation.show() (line:222) :: Unity Ads opening new ad unit for placement ChangeCardColor
    2. 12-04 11:32:58.202: I/UnityAds(1489): com.unity3d.services.core.api.Sdk.logInfo() (line:82) :: Opening performance ad unit with orientation LANDSCAPE, hardware acceleration enabled
    3. 12-04 11:32:58.275: I/Unity(1489): windowFocusChanged: false
    4. 12-04 11:32:58.275: I/Unity(1489): onPause
    5. 12-04 11:32:58.384: W/google-breakpad(1489): ### ### ### ### ### ### ### ### ### ### ### ### ###
    6. 12-04 11:32:58.384: W/google-breakpad(1489): Chrome build fingerprint:
    7. 12-04 11:32:58.384: W/google-breakpad(1489): 0.2
    8. 12-04 11:32:58.384: W/google-breakpad(1489): 2
    9. 12-04 11:32:58.384: W/google-breakpad(1489): ### ### ### ### ### ### ### ### ### ### ### ### ###
    10. 12-04 11:32:58.386: E/CRASH(1489): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000000000028
    11. 12-04 11:32:58.386: E/CRASH(1489): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    12. 12-04 11:32:58.386: E/CRASH(1489): Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    13. 12-04 11:32:58.386: E/CRASH(1489): Build fingerprint: 'HONOR/FRD-L19/HWFRD:7.0/HUAWEIFRD-L19/C432B405:user/release-keys'
    14. 12-04 11:32:58.386: E/CRASH(1489): Revision: '0'
    15. 12-04 11:32:58.386: E/CRASH(1489): pid: 1489, tid: 1532, name: UnityMain  >>> com.TesiGames.PokerTowerDefense <<<
    16. 12-04 11:32:58.386: E/CRASH(1489):     x0   0000000000000028  x1   0000000000000000  x2   0000007ce6a7b010  x3   f97d71eccafe551e
    17. 12-04 11:32:58.386: E/CRASH(1489):     x4   0000007cd322124c  x5   00000000ffffffff  x6   00000000ffffffff  x7   000000000000004d
    18. 12-04 11:32:58.387: E/CRASH(1489):     x8   0000007cc2192900  x9   f97d71eccafe551e  x10  0000007ce257fa88  x11  0000000000000000
    19. 12-04 11:32:58.387: E/CRASH(1489):     x12  0000000000000000  x13  00000000375509ec  x14  00000000000048a8  x15  00000000000046e8
    20. 12-04 11:32:58.387: E/CRASH(1489):     x16  0000007cd4876948  x17  0000007ce6a1d22c  x18  0000007cdc23df72  x19  0000000000000028
    21. 12-04 11:32:58.387: E/CRASH(1489):     x20  0000007cd4874000  x21  0000007ce257fa80  x22  0000007cc74c4530  x23  0000007ce25814e8
    22. 12-04 11:32:58.387: E/CRASH(1489):     x24  0000000000000004  x25  f97d71eccafe551e  x26  0000007cd96e1a98  x27  0000000000000000
    23. 12-04 11:32:58.387: E/CRASH(1489):     x28  0000000000000001  x29  0000007ce257fc28  x30  0000007cd32213b8
    24. 12-04 11:32:58.387: E/CRASH(1489):     sp   0000007ce257f9a0  pc   0000007ce6a1d22c  pstate 0000000060000000
    25. 12-04 11:32:58.387: E/CRASH(1489): backtrace:
    26. 12-04 11:32:58.764: I/HwCust(1710): Constructor found for class android.app.HwCustActivityImpl
    27. 12-04 11:32:58.767: I/HwCust(1710): Constructor found for class android.app.HwCustHwWallpaperManagerImpl
    28. 12-04 11:32:58.772: E/UnityAds(1710): com.unity3d.services.ads.adunit.AdUnitActivity.onCreate() (line:61) :: Unity Ads web app is null, closing Unity Ads activity from onCreate
    I have tried building on a Mac and on a Windows machine. The Problem happens on both.
    I'm looking forward for any help!

    Edit: In the Editor also everything is working fine.
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @belindavetesi

    Thanks for reporting this issue. Would you be able to provide a few more details:
    • Which version of Unity were you using?
    • Which version of the Ads SDK did you use?
    • How did you install the Ads SDK? Package Manager, Services Window, or Asset Store?
    • Just want to confirm that you only changed the Product Name, but did not change the bundle ID?
    • What device did this crash occur on?
    • Are you only seeing this issue on Android or iOS as well?
     
    belindadiesslin likes this.
  3. belindadiesslin

    belindadiesslin

    Joined:
    Jan 27, 2019
    Posts:
    9
    Hello @ap-unity
    I use 2019.2.9f1 (On Mac and on Windows, on both I get the Error)
    I use Ads SDK version 3.3.0, installed by turning on Ads on the Services Tab and then installing it with Packages tab in Unity Editor
    I only changed the Product name. The Bundle ID is always the same (com.TesiGames.PokerTowerDefense)
    The test device is a Huawei Honor 8 (FRD-L19)
    On iOS i haven't tested the new Version. I will do this as soon as possible and write again.
     
  4. belindadiesslin

    belindadiesslin

    Joined:
    Jan 27, 2019
    Posts:
    9
    I tested it now on iOS. The Ads are always working on iOS, no matter if the Product Name is set to "Poker TD" or "PokerTowerDefense". The Problem only occurs on Android with Product Name "PokerTowerDefense" (which is the product name of the published version).
     
  5. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    Thanks for providing that information. We will try to reproduce and determine where the issue might be.
     
    belindadiesslin likes this.
  6. belindadiesslin

    belindadiesslin

    Joined:
    Jan 27, 2019
    Posts:
    9
    @ap-unity Have you tried to figure out what is wrong? Do you know any solution or work around for this problem?

    I don't want to hold the update back much longer.
     
  7. payalzariya07

    payalzariya07

    Joined:
    Oct 5, 2018
    Posts:
    85
    can you change the Build version number in an android manifest file?

    Player setting -> other settings -> version number

    it is the same version for manifest file and apk build version.
     
  8. belindadiesslin

    belindadiesslin

    Joined:
    Jan 27, 2019
    Posts:
    9
    I have changed the version number, like you described it @payalzariya07, but the game is still crashing, when I want to watch an add.
    Nevertheless thank you very much for your suggestion!
     
  9. payalzariya07

    payalzariya07

    Joined:
    Oct 5, 2018
    Posts:
    85
    ok,
    Player setting -> other settings -> minimum API level is 21 or in the manifest file target SDK minimum API level the same as it to the minimum API level.
     
  10. belindadiesslin

    belindadiesslin

    Joined:
    Jan 27, 2019
    Posts:
    9
    I have changed the minimum API level from 16 to 21 and tried it again, but the game is still crashing, when I want to watch an add.
     
  11. belindadiesslin

    belindadiesslin

    Joined:
    Jan 27, 2019
    Posts:
    9
    I have now seen that the bundle ID changes just when I change the product name. In my message from 4.12. I wrote that the Bundle ID is the same (I don't know if I saw it wrong or if it hasn't changed).
    I have now tried to publish the Update with "Project Settings -> Player -> Product Name -> Poker TD", but Google Play reject the upload, because the Bundle ID is not the same.
    The next attempt I made: I created a new project using the Unity Dashboard and generated a new Game ID, with which I now tried it out. But the game still crashes as soon as I try to call up an advertisement.
    @ap-unity Have you looked at the problem? Or is there any news? If it helps you with troubleshooting, I can make the project available to you.
    Otherwise I have to look for another advertising network now, unfortunately =(
     
  12. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @belindavetesi

    I apologize for the lack of updates on this issue. We have run into issues trying to reproduce it.

    Would you be able to open a support ticket and provide a link to your project:
    unityads-support@unity3d.com

    Yeah, I've noticed that as well. I think it's a new feature in 2019.2.

    If you haven't already, can you try uninstalling the old version of the app before installing the new version.
     
  13. belindadiesslin

    belindadiesslin

    Joined:
    Jan 27, 2019
    Posts:
    9
    I sent the project to the mail.

    The problem seems to be solved by a new installation (with uninstalling). I hadn't tried this before, because I thought the saved data in Application.persistentDataPath would be lost. But on my test device the data was still there. I'm now uploading the update in the Google Play Store and will let you know if the advertising works for the users or not.

    Thanks a lot for the support so far and happy holidays!
     
    Last edited: Dec 23, 2019