AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
142 stars 111 forks source link

Value ok of type java.lang.String cannot be converted to JSONObject #248

Open martinfrouin opened 1 year ago

martinfrouin commented 1 year ago

Describe the bug I have these logs when i'm trying to log an event on Android (the same code is working fine on iOS)

I/AppsFlyer_6.9.3( 4496): CACHE: caching request with URL: https://inapps.appsflyer.com/api/v6.9/androidevent?app_id=eco.kiklos.remind&buildnumber=6.9.3
I/AppsFlyer_6.9.3( 4496): CACHE: done, cacheKey: 1672142492909
D/AppsFlyer_6.9.3( 4496): HTTP: [251521122] POST:https://inapps.appsflyer.com/api/v6.9/androidevent?app_id=eco.kiklos.remind&buildnumber=6.9.3
D/AppsFlyer_6.9.3( 4496):  payload: <encrypted>
D/AppsFlyer_6.9.3( 4496): HTTP: [251521122] response code:200 OK
D/AppsFlyer_6.9.3( 4496):  body:ok
D/AppsFlyer_6.9.3( 4496):  took 75ms
I/AppsFlyer_6.9.3( 4496): CACHE: Deleting 1672142492909 from cache
D/AppsFlyer_6.9.3( 4496): QUEUE: execution finished for INAPP-12, result: SUCCESS
D/AppsFlyer_6.9.3( 4496): Value ok of type java.lang.String cannot be converted to JSONObject

I don't know if it's related but the non-organic install test and in-app events test aren't working either.

To Reproduce Steps to reproduce the behavior:

  1. Use logEvent function with debug enabled await appsflyerSdk.logEvent('af_login', {"id": "test"});
  2. Check logs

Expected behavior No error message

Smartphone (please complete the following information):

pazlavi commented 1 year ago

Hey @martinfrouin, We are aware of this log message, and it's already on our roadmap for a fix. It does not affect the app behavior or event logging. If you have any other issues with testing non-organic installs, We would kindly ask you to submit a support ticket to support@appsflyer.com.

In order to get optimal support. When submitting the ticket, please specify your AppsFlyer sign-up (account) email, app ID, reproduction steps, code snippets, logs, the links you used, and any additional relevant information.