Android app doesn't work #17

Closed
opened 2023-11-21 04:25:42 +00:00 by jgeorgi · 2 comments
Owner

The cordova compiled android app has several issues noticeable right away:

  • 1. Actual call to doods does not seem to work, at least no results are returned and parsed as far as can be seen.
  • 2. The placeholder image icon on the detect screen registers as a broken image link
  • 3. The image in the button that opens the region selector on the detect page registers as a broken image link
  • 4. There is no splash screen visual (there's a warning in the cordova build about this which should be looked into more carefully)
  • 5. The icon in the android app drawer is a small square in the larger icon circle instead of a full circular icon
The cordova compiled android app has several issues noticeable right away: - [x] 1. Actual call to doods does not seem to work, at least no results are returned and parsed as far as can be seen. - [x] 2. The placeholder image icon on the detect screen registers as a broken image link - [x] 3. The image in the button that opens the region selector on the detect page registers as a broken image link - [x] 4. There is no splash screen visual (there's a warning in the cordova build about this which should be looked into more carefully) - [x] 5. The icon in the android app drawer is a small square in the larger icon circle instead of a full circular icon
jgeorgi added the
bug
label 2023-11-21 04:25:42 +00:00
jgeorgi self-assigned this 2023-11-21 04:25:42 +00:00
jgeorgi added this to the ALVINN project 2023-11-21 04:25:42 +00:00
jgeorgi added this to the 0.2.0 milestone 2023-11-27 19:33:34 +00:00
Author
Owner

0.1.1 test version sees only moderate success

  1. Actual call to doods does not seem to work, at least no results are returned and parsed as far as can be seen.

Still true. Also calls to doods to get detector info fail. So all outgoing calls appear to be a problem.
Edit: I'm sure at this point it is a request security issue. Setting <access origin="*" /> in config.xml doesn't seem to fix the problem.
Edit2: Had to add <preference name="AndroidInsecureFileModeEnabled" value="true" /> to config.xml. Not sure the long term security implications, but doods calls now work.

  1. The placeholder image icon on the detect screen registers as a broken image link

Still true. No idea why.
Edit: The images that fail are the ones that are dynamically set via vue properties, for some reason. Direct image settings are just fine. I think the issue is that cordova build doesn't change string path refs ('../assets/regions/limb.svg') to the locations of the images that it renames and moves to app assets folder.

  1. The image in the button that opens the region selector on the detect page registers as a broken image link

Also still true.

  1. There is no splash screen visual (there's a warning in the cordova build about this which should be looked into more carefully)

This was fixed by removing the <splash> tags in the confix.xml and adding the correct preference tags from https://cordova.apache.org/docs/en/12.x/core/features/splashscreen/index.html#configxml-preferences however changes were lost due to extreme stupidty and need to be re-added.

  1. The icon in the android app drawer is a small square in the larger icon circle instead of a full circular icon

This appears to be fixed, although I hope the changes were not also lost.

Edit: App icon changes were lost...meh.

0.1.1 test version sees only moderate success > 1. Actual call to doods does not seem to work, at least no results are returned and parsed as far as can be seen. Still true. Also calls to doods to get detector info fail. So all outgoing calls appear to be a problem. Edit: I'm sure at this point it is a request security issue. Setting `<access origin="*" />` in config.xml doesn't seem to fix the problem. Edit2: Had to add `<preference name="AndroidInsecureFileModeEnabled" value="true" />` to config.xml. Not sure the long term security implications, but doods calls now work. > 2. The placeholder image icon on the detect screen registers as a broken image link Still true. No idea why. Edit: The images that fail are the ones that are dynamically set via vue properties, for some reason. Direct image settings are just fine. I think the issue is that cordova build doesn't change string path refs (`'../assets/regions/limb.svg'`) to the locations of the images that it renames and moves to app assets folder. > 3. The image in the button that opens the region selector on the detect page registers as a broken image link Also still true. > 4. There is no splash screen visual (there's a warning in the cordova build about this which should be looked into more carefully) This was fixed by removing the `<splash>` tags in the confix.xml and adding the correct preference tags from https://cordova.apache.org/docs/en/12.x/core/features/splashscreen/index.html#configxml-preferences however changes were lost due to extreme stupidty and need to be re-added. > 5. The icon in the android app drawer is a small square in the larger icon circle instead of a full circular icon This appears to be fixed, although I hope the changes were not also lost. Edit: App icon changes were lost...meh.
Author
Owner

I found no way to resolve the image issue with dynamic references, so I used multiple vue elements with static references and v-if statements.

I found no way to resolve the image issue with dynamic references, so I used multiple vue elements with static references and v-if statements.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ALVINN/ALVINN_f7#17
No description provided.