onepf / OpenIAB

Open In-App Billing for Google Play, SlideMe, Amazon Store, Nokia Store, Samsung Apps, Yandex.Store, Appland, Aptoide, AppMall and Fortumo.
http://onepf.org/openiab/
Apache License 2.0
476 stars 171 forks source link

Unable to instantiate receiver com.amazon.inapp.purchasing.ResponseReceiver #421

Closed JaimeCarbo closed 9 years ago

JaimeCarbo commented 9 years ago

I am getting an error when I purchase an IAP, cancel or hit back on the IAP. The app crashes and the stacktrace says it is because the ResponseReceiver cannot be instantiated. I have attached a copy of the stack trace below. Is this a known bug and if so is there any type of workaround it? stacktrace

akarimova commented 9 years ago

Hi @JaimeCarbo, your receiver is 1.x version. the current supported version is 2.0 you need to change the old receiver to

 <receiver android:name="com.amazon.device.iap.ResponseReceiver">
        <intent-filter>
            <action
                android:name="com.amazon.inapp.purchasing.NOTIFY"
                android:permission="com.amazon.inapp.purchasing.Permission.NOTIFY" />
        </intent-filter>
    </receiver>
JaimeCarbo commented 9 years ago

Hi @akarimova,

Thank you for your quick response. Is there any other change for the 2.0 version we should change that is not already handled by OpenIAB?

akarimova commented 9 years ago

Only this change.