playMaker

Author Topic: Ecosystem action bug - Unity Analytics[SOLVED]  (Read 105 times)

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Ecosystem action bug - Unity Analytics[SOLVED]
« on: October 09, 2019, 07:59:20 PM »
Didnt know exactly where to put this.  Hopefully this is the correct spot.

If you use Analytics send custom event (found on the ecosystem), in the editor with wifi off or ethernet unplugged, the action still takes the success path.  How can it do that, if it cannot successfully report via the internet?
« Last Edit: October 09, 2019, 11:37:44 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14564
  • Official Playmaker Support
    • View Profile
Re: Ecosystem action bug - Unity Analytics
« Reply #1 on: October 09, 2019, 11:37:33 PM »
Hi,

 unfortunatly, the result comes from the api itself.

https://docs.unity3d.com/ScriptReference/Analytics.AnalyticsResult.html

so the result is not whether you are connected or not it's how your event was formatted, I suggest you check if you are online first and adjust accordingly your logic.

Bye,

 Jean

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Ecosystem action bug - Unity Analytics[SOLVED]
« Reply #2 on: October 10, 2019, 05:51:41 AM »
Yep, good catch!  For others, I found that I should be using Application Internet Reachability (on ecosystem) to test for internet first, before sending the analytics.