Side loading: grant permissions

Former Member
Former Member
Hello,

I have created a widget, which obtains data from a web service as JSON data. In the simulator all is running fine and the widget receives the data.
But as soon as I side load the widget to my Fenix3 no data will be loaded. No exception will be raised. Just nothing happens. It seems that the widget will stuck in the request.
I suppose this is related to the necessary permission for the communication library. Is there any possibility to grant permissions via side loading?

Kind regards

Moritz
  • If the permissions weren't correct, it wouldn't run in the simulator. You don't need to do anything special for permissions when side loading.

    Could it be that you're getting the data on the real device but just not displaying in ( not doing something like Ui.requestUpdate() at the end of your onReceive())?

    Also, JSON calls take MUCH longer on the real devices than in the simulator, especially if you're requesting a big chunk of data.

    There's another thread today about logging on the device - you can put Sys.println() calls in your code and see what's going on when running on the real device.
  • Former Member
    Former Member over 9 years ago
    Thanks for the answer. The logging on the device is very interesting. It didn't resolve my problem but is very useful. Though the issue was, that my JSON response was too big. I found a connect IQ project which refers to this kind of issue as a side note...
    Did I oversee something in the manual which describes how big the maximum JSON response is allowed to be?

    Kind regards

    Moritz