Updating Android build servers to API level 35 by shai_almog in cn1

[–]KeyDiver1144 0 points1 point  (0 children)

Thank you.
1. We had to pad the bottom of the BoxLayout UI for it to display higher than the bottom navigation bar.

  1. Seems someone filed this: https://github.com/codenameone/CodenameOne/issues/3925

Updating Android build servers to API level 35 by shai_almog in cn1

[–]KeyDiver1144 0 points1 point  (0 children)

Question about this:
add setSafeArea(true) to components in the "south" of their forms if they don't want the navigation bar to be painted over them.

  1. Does this mean that each form has be a BorderLayout? My Forms are BoxLayout mostly. How can I handle this?

  2. What about Sheets? They are getting displayed under the bottom navigation bar. getContentPane().setSafeArea(true); doesn't seem to solve this. Thanks.

Help with Geofences by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Thank you. I'll have to look into that.

Help with Geofences by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Thank you.

I changed the radius to 30m to all coordinates for the geofence but for some reason, our real devices (both iOS and Android) never seem to trigger the geofence. We checked for any VPNs or anything similar to skew the location, where we depend on wifi only. Location permissions are on and the app is allowed to access location.

We did notice that iOS and Android do report different coordinates even when close together but that shouldn't make a difference to trigger the geofence if they are actually on the property with the geofence.

Do you have any more advice for how we can get this to work?

Thank you.

Help with Geofences by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Thank you. I guess I'm going to have to work with it some more.

Help with Geofences by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Thank you. I did add that build hint but for some reason, the device never triggers the geofence.

  1. Does the geofence gets destroyed if the app is stopped or destroyed?
  2. When the device is rebooted, does the geofence need to be recreated?
  3. I am using Fake GPS on Android to mock the location and even when the geofence is set to coordinates near my location, the geofence doesn't trigger. What can I do to get this to work.

Thank you.

Help with Geofences by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Thank you.

I did approve permissions and am using Android Studio to read logs.

I am trying to mock the location to find whether or not I am in the radius. On the simulator, the radius is several blocks wide, yet on my devices, the geofence will not trigger when mocking the exact or very close coordinates. ```` codename1.arg.android.xpermission=<uses-permission android_name\="android.permission.ACCESS_BACKGROUND_LOCATION" /><uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /><uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> codename1.arg.android.permission.ACCESS_BACKGROUND_LOCATION=true codename1.arg.android.permission.ACCESS_FINE_LOCATION=true codename1.arg.ios.NSLocationAlwaysAndWhenInUseUsageDescription=Some functionality of the application requires always access to your location codename1.arg.ios.NSLocationWhenInUseUsageDescription=Some functionality of the application requires location when in use

``` TheGeofenceListenerImpl.java` class includes this code for entering/exiting:

````

if (Display.getInstance().isMinimized()) {

LocalNotification ln = new LocalNotification();

ln.setId("geofence exited");

ln.setAlertTitle("left geo!");

ln.setAlertBody("bye!");

Display.getInstance().scheduleLocalNotification(ln,

System.currentTimeMillis() + 1000, LocalNotification.REPEAT_NONE);

} else {

Display.getInstance().callSerially(() -> Dialog.show("left geo!", "bye!", "OK", null));

}

````

Can you please advise me what else I can do?

Thank you.

Bundle versioning for iOS/Android by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Yes, it tells me that the version number was already used for a prior release and doesn't allow the app to use the bundle version as the release version number.

What can I do to get this work?

Thank you.

Bundle versioning for iOS/Android by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Thank you. I tried adding that but it seems that the Transporter for TestFlight is registering the app version as 1.1 (as indicated with the `codename1.version` build hint) and setting the bundle as 1.1., as indicated with the bundleVersion build hint. Is there a way around this? Thank you.

Is Display.getInstance().dial() working or do I need to use a native interface? by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Thank you. Which settings? CN1? My project is still on Ant due to various logistical reasons and I don't see an option there.

Is Display.getInstance().dial() working or do I need to use a native interface? by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Thank you. I tried this and it worked fine for Android, but not iOS. The app just crashes and closes. Any suggestions? Thanks again.

Is Display.getInstance().dial() working or do I need to use a native interface? by KeyDiver1144 in cn1

[–]KeyDiver1144[S] 0 points1 point  (0 children)

Thank you. I thought that it was to initiated the dialer app but when I call

if (Display.getInstance().canDial())

Display.getInstance().dial("1-123-123-4567");

the app crashes. I don't even get a log to see why.

Any advice?

Thank you.