using cli5.2.0 all network connection attempts fail

  • 1
  • Problem
  • Updated 5 years ago
  • Solved
Hi;
while tyring to port to cli5.2.0 from pgb3.7.0 I have noticed that my app cannot make any network connections to the backend data server.
any idea what I am doing wrong? i assume I am missing something.
thanks,
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes

Posted 5 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
You're probably missing the new whitelist plugin and the new whitelist formats.
See Ryan's notes on how to upgrade from 3.7.0
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
yeah I figured its something like that.
whats the incentive though? 3.7.0 allows connections to everything and cli5.2.0 does not?
this is a bit strange... my ios9 device and android 5 certainly don't care about this. they work with pgb 3.7.0 great. so why does pgb needs to revert this?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
The new format allows for more restrictive access authorization. There are more options to fine-tune, also due to the use of a plugin for whitelisting, instead of letting core Phonegap handle it.

This change was certainly not intended to do your iOS9 device and your Android 5 device a favor, but rather to enable developers to restrict access by apps in a way as required for the functionality.

Many developers used to have "access origin=*" specified. The current change may look complicated and unnecessary to them, but then again, such developers obviously shrug, and don't [want to] care about any form of access restriction.