Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Will UnityIAP use Unity PackageManager ?

Discussion in 'Unity IAP' started by stevenchan_playstudios, Jun 7, 2018.

  1. stevenchan_playstudios

    stevenchan_playstudios

    Joined:
    Mar 1, 2017
    Posts:
    32
    Will UnityIAP use Unity PackageManager ?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    It already does, you can see In App Purchasing (listed as version 2.0.1) in Package Manager.
     
  3. stevenchan_playstudios

    stevenchan_playstudios

    Joined:
    Mar 1, 2017
    Posts:
    32
    But it doesn't contain Android, iOS library.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    Those libraries (the ability to create Android and/or iOS applications) come with the Unity installation process. They are selectable download options during the Unity install.
     
  5. stevenchan_playstudios

    stevenchan_playstudios

    Joined:
    Mar 1, 2017
    Posts:
    32
  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    We are working to include full IAP Support in Package Manager in an upcoming release.
     
    Last edited: Jun 12, 2018
  7. stevenchan_playstudios

    stevenchan_playstudios

    Joined:
    Mar 1, 2017
    Posts:
    32
    Great to know.. Thanks.
     
  8. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    Actually, the core purchasing code, which used to be in the Editor, is now available via the Package Manager. The remaining portions of IAP (scripts and UI elements) will remain in the plugin.
     
  9. stevenchan_playstudios

    stevenchan_playstudios

    Joined:
    Mar 1, 2017
    Posts:
    32
    Why the remaining portions of IAP (script and UI elements ) cannot be provided via Package Manager, like TextMeshPro, UnityUI ?
     
  10. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    The remaining portions are not core to the Unity engine.
     
  11. stevenchan_playstudios

    stevenchan_playstudios

    Joined:
    Mar 1, 2017
    Posts:
    32
    I think the AssetStore package will be distributed using PackageManager in the future. So why not UnityIAP (script and UI elements) cannot be distributed using PackageManager?
    I think the current UnityIAP is extracted to Plugins\UnityPurchasing which is not consistent to what PackageManager suggested.
     
  12. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    I confirmed that you are correct, the full IAP package is planned to be available via Package Manager. There is no ETA at this time but is currently being developed. Apologies on the confusion.
     
  13. 00christian00

    00christian00

    Joined:
    Jul 22, 2012
    Posts:
    831
    Today while cleaning up my code, I deleted the unity iap files in the plugin folder since it was now in the package manager and saw it doesn't work anymore.
    So what's the correct way to do a clean setup now?
    I don't understand what is included in the package manager that isn't already in the asset store.
    Should I just remove the package manager version and install the asset store version?

    By the way, why it ask me to upgrade the scripts on a freshly downloaded version?
     
    Firemaw likes this.
  14. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,384
    @00christian00

    You will need both: the "In App Purchasing" package from Package Manager and the "Unity IAP" plugin (from the Asset Store or the Services window).

    However, the process has not changed because the "In App Purchasing" package is included by default. You still only need to enable IAP in the Services window and import the package once.

    I discussed a bit of the historical context for the split here: (In short, it's always been this way, but part of it was integrated into the Unity Engine and now that part is in the Package Manager.)
    https://forum.unity.com/threads/arg...-an-empty-or-null-string.532108/#post-3534359

    This is for backwards compatibility reasons. Unity IAP references an API that was changed between Unity versions, so we rely on the API Updater to update it for newer versions of Unity. We are looking at better solutions for dealing with this.
     
  15. Foriero

    Foriero

    Joined:
    Jan 24, 2012
    Posts:
    476
    Hi is this installation process still valid for 2018.3f2? I mean do we still need install both PackageManager and Services INAPPS?
    Thank you, Marek.
     
  16. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    Yes
     
  17. eladleb4

    eladleb4

    Joined:
    Apr 25, 2016
    Posts:
    34
    It would be great if there was an automatic API check.
    I just upgraded to Unity 2018.3 and didn't realize I needed to update the services -> IAP as well as the pacakge manager.
    The result was that my Android game has crashed on the IAP init and it wasn't very trivial to find out the root cause.
     
  18. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    @eladleb4 You are prompted to update IAP when there is a new version available. Can you describe the steps you took that resulted in the Android issue, and the specific error message that you received?
     
  19. eladleb4

    eladleb4

    Joined:
    Apr 25, 2016
    Posts:
    34
    @JeffDUnity3D Mmm... I don't recall seeing an IAP update notice, we always update to the latest stable version of Unity whenever prompted (very early adopters)...

    I got the following error in Android Studio (logcat) when I initialize the UnityIAP and the device is connected to the internet.
    When the device isn't connected to the internet or when I comment out the UnityIAP initialization, the game works fine.

    12-24 19:36:54.780 17881-17930/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000023
    12-24 19:36:54.780 17881-17930/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    12-24 19:36:54.780 17881-17930/? E/CRASH: Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
    12-24 19:36:54.780 17881-17930/? E/CRASH: Build fingerprint: 'google/hammerhead/hammerhead:6.0.1/M4B30Z/3437181:user/release-keys'
    12-24 19:36:54.780 17881-17930/? E/CRASH: Revision: '11'

    After I updated the IAP versions, it was resolved.
     
    Last edited: Dec 24, 2018
  20. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    352
    it is very confusing to be in need to have 2 modules (package and plugin)
     
  21. Foriero

    Foriero

    Joined:
    Jan 24, 2012
    Posts:
    476
    Indeed
     
  22. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,028
    With no way to find a changelog for the package :confused:
     
  23. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    menu Window/Unity IAP/IAP Updates...
     
  24. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,028
    The 2.0.6 package from the package manager?
     
  25. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,174
    Got it, sorry. I was referring to the Asset package
     
unityunity