playMaker

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

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 219
Ecosystem action bug - Unity Analytics[SOLVED]
« on: October 09, 2019, 10: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 10, 2019, 02:37:44 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Ecosystem action bug - Unity Analytics
« Reply #1 on: October 10, 2019, 02:37:33 AM »
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: 219
Re: Ecosystem action bug - Unity Analytics[SOLVED]
« Reply #2 on: October 10, 2019, 08: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.