These are chat archives for angular/angular-2-ionic-2

1st
Mar 2018
UncertaintyP
@UncertaintyP
Mar 01 00:14
But why you need JS for this :P
Owen Melbourne
@OwenMelbz
Mar 01 07:42
The elements are svg - and iOS doesn’t support animations of paths yet, it works css only in browser. So have to add the animation library to make it compatible with it
UncertaintyP
@UncertaintyP
Mar 01 07:47
Damn you iOS :D
maxeber
@maxeber
Mar 01 14:46

Hi guys, I'm having problem with an Android build. I'm using cordova-plugin-media && cordova-plugin-file and everything is fine but when I build with --prod. It seems :

  • on Android 5.1.1 everything is fine: microphone/filestorage (the app don't even ask for permission, seems its granted automaticcally)
  • on Android 7.0 the app launch ask for permission, but then the microphone/filestorage doesn't work right there, you need to restart the app and everything is fine
  • on Android > 7.0 the app launch ask for permission but the microphone/filestorage just doesn't work even with a restart

On forums, everyone tells to add permission in AndroidManifest but that file doesn't even exist. I have a config.xml but I can't add permission there it seems. The parser crash when I add them. I have a manifest.json but I've seen no one with permission inside it.

Can anyone help me?

UncertaintyP
@UncertaintyP
Mar 01 14:57
The AndroidManifest.xml is in platforms/android
UncertaintyP
@UncertaintyP
Mar 01 15:07
maxeber
@maxeber
Mar 01 18:06
@UncertaintyP Okay, everything is working on every device! Thanks alot! I'm glad you answered. Between, I don't have AndroidManifest.xml. But anyway it's working lol.
image.png
UncertaintyP
@UncertaintyP
Mar 01 19:39
@maxeber How? I tried to upgrade my project to cordova-android 7.X.X put can't manage to compile updates into the app (only the initial platform add gets compiled).
Ionic is currently not supporting this version and that's the only of many issues I haven't got a workaround
btw your manifest file is in app/src/main/AndroidManifest.xml
gary-b
@gary-b
Mar 01 20:17
I've inherited ionic 2 app. The models are quite rich. Each has a save method to save to sqlite. There are also methods to perform actions. While this feels quite good oop, in ng a wee have kept this logic in services. Are richer models more typical in ng2?
Is this a pattern I should continue, or think about refactoring?
UncertaintyP
@UncertaintyP
Mar 01 20:21
you may wanna think about updating your app in general and then you could certainly have a look at ngrx
gary-b
@gary-b
Mar 01 20:32
Hrm, id have to study that to see if it would be good. The app is all about filling out forms, the design of which is determined by users and determined by json. Every field is a custom field get
Heh
gary-b
@gary-b
Mar 01 20:59
Any other thoughts on my q? The disadvantage I've noticed is the jumping between classes to track down functionality. I'm more worried about the next guy who takes on the project, will he think wtf?