Integrate ionic 5 with zoom - integration

i m trying to integrate ionic 5 with zoom,
i m following this tutorial : https://marketplace.zoom.us/docs/sdk/hybrid-frameworks/ionic/getting-started/install
1) i added the plugin using capacitor
2) did the set up in the ionic app
3) Project is building properly
but when i m trying to build it in android studio it gives
ERROR: Failed to resolve: :mobilertc
so i added the 2 libraries of zoom
which are commonlib and mobilertc
then i went to dependancy and added the dependencies
But still i m getting the same error.
ERROR: Failed to resolve: :mobilertc
Plz help

Please install these two plugins
ionic cordova plugin add cordova-plugin-androidx
ionic cordova plugin add cordova-plugin-androidx-adapter
and make sure you have
compileSdkVersion: 29+
buildToolsVersion: 29+
minSdkVersion: 21
in build.gradle file

Related

Flutter geolocator package not retrieving location

I've open an issue on the geolocator repository https://github.com/BaseflowIT/flutter-geolocator/issues/199
It entails the geolocator package not retrieving the location. They recently released a new version 3.0.0 and after that the I have had only aftermath.
I am using the correct dependencies:
dependencies:
geolocator: '^3.0.0'
targetSdkVersion 28 and compileSdkVersion 28
Flutter doctor gives me this:
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.3 18D109, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] IntelliJ IDEA Community Edition (version 2018.2.5)
[✓] Connected device (1 available)
• No issues found!
Once I call await Geolocator().getCurrentPosition(desiredAccuracy: LocationAccuracy.high); the code just doesn't return anything and I have this output in terminal:
I/DynamiteModule( 4233): Considering local module
com.google.android.gms.maps_dynamite:0 and remote module
com.google.android.gms.maps_dynamite:221 I/DynamiteModule( 4233):
Selected remote version of com.google.android.gms.maps_dynamite,
version >= 221 V/DynamiteModule( 4233): Dynamite loader version >= 2,
using loadModule2NoCrashUtils W/System ( 4233): ClassLoader referenced
unknown path: W/System ( 4233): ClassLoader referenced unknown path:
/data/user_de/0/com.google.android.gms/app_chimera/m/00000030/n/armeabi-v7a
W/System ( 4233): ClassLoader referenced unknown path:
/data/user_de/0/com.google.android.gms/app_chimera/m/00000030/n/armeabi
I/Google Maps Android API( 4233): Google Play services client version:
12451000 I/Google Maps Android API( 4233): Google Play services
package version: 15090018 W/DynamiteModule( 4233): Local module
descriptor class for com.google.android.gms.googlecertificates not
found. I/DynamiteModule( 4233): Considering local module
com.google.android.gms.googlecertificates:0 and remote module
com.google.android.gms.googlecertificates:4 I/DynamiteModule( 4233):
Selected remote version of com.google.android.gms.googlecertificates,
version >= 4 W/System ( 4233): ClassLoader referenced unknown path:
/data/user_de/0/com.google.android.gms/app_chimera/m/0000002f/n/armeabi-v7a
W/System ( 4233): ClassLoader referenced unknown path:
/data/user_de/0/com.goo`gle.android.gms/app_chimera/m/0000002f/n/armeabi
I have spent a considerable amount of time on this. I am new to flutter and know that I may be missing a small thing to make it work.
I was facing the same issue. But my app started running after adding this.
[ Geolocator geolocator = Geolocator()..forceAndroidLocationManager = true; ]
Hope it will work.
Future<void> getCurrentLocation() async {
try {
Geolocator geolocator = Geolocator()..forceAndroidLocationManager = true;
Position position = await Geolocator().getCurrentPosition(
desiredAccuracy: LocationAccuracy.best,
);
return position;
} catch (err) {
print(err.message);
}
}
All the best.
On iOS you'll need to add the following entries to your Info.plist
file (located under ios/Runner) in order to access the device's
location. Simply open your Info.plist file and add the following:
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app needs access to location when open.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>This app needs access to location when in the background.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>This app needs access to location when open and in the background.</string>
I was facing the same issue now it works, I've just added forceAndroidLocationManager: true to the Geolocator.getCurrentPosition.
Position position = await
Geolocator.getCurrentPosition(forceAndroidLocationManager: true,
desiredAccuracy: LocationAccuracy.lowest);
Hey #wagnerdelima had same challenge and l solved by the following :
Change the targetSdkVersion 28 and compileSdkVersion 28 to targetSdkVersion 27 and compileSdkVersion 27 and change to geolocator: '^3.0.0' to geolocator: ^2.1.1 as below:
dependencies:
flutter:
sdk: flutter
geolocator: ^2.1.1
permission_handler: "2.1.2"
google_api_availability: "1.0.4"
This was as a result of the caret ^, it is taking the google_api_availability latest, which is migrated to android x.
All the best !!
I was struggling with this problem for about 2 days. After that, I figured out this (Mac):
In Simulator iOS did not work anyway;
Connect an iOS real device After open iOS module in XCode as follow
Right-click on folder project
Choose Flutter->Open iOS module in XCode
On XCode, Select TAGETS -> Runner
In Signing & Capabilities:
Set the Team
Change the Bundle Identifier to a unique one (ex.:co.test.app456)
Run your app in XCode (it will work)
Close XCode and go back to your project in Flutter
Select the real iOS device and run your app
I had the same issue i.e it was not returning anything but keep fecthing location so i just changed from this
forceAndroidLocationManager: true
to this
forceAndroidLocationManager: false
Geolocator.getCurrentPosition(
desiredAccuracy: LocationAccuracy.bestForNavigation,
forceAndroidLocationManager: false)
.then((position) {
print(position);
});
Now its working fine. The problem is in new update because in the old package it was working fine
First things first, check the device you are using and your Flutter version.
i had same issue with only one device that is Google's Nexus 6P and Flutter Version 1.9.1+hotfix.6. The problem is with the package "geolocator" because all other devices are working fine.
I recommend new_geolocation. As it resolved the issue for all devices so far.
Secondly, how i used it, the readme file here didnt help, so went through the example project on Github here, used the same methods of this example for exact results.
I hope it will help.
This solution will work, I was facing issue with Android:
Geolocator geoLocator = Geolocator()..forceAndroidLocationManager = true;
Position position = await geoLocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.low);
print(position);
I had the same problem.
I was able to solve it by:
replacing current API key with new one
clearing out all the minor bugs in file, e.g. writing remaining #override functions, adding 'const' and 'final' keywords etc.
Try these,
it might help.
If you are using the iOS Simulator, you need to set the Location different from None in order the getCurrentPosition method returns the position:
I had this problem until I tried to set the accuracy to low. Then it worked. I believe you may need extra permissions for high accuracy location. It's funny only the low accuracy works for me, none of the others. Also, the forceAndroidLocationManager has to be set to false for it to work on my IOS emulator.
This code worked for me:
Geolocator.getCurrentPosition(
desiredAccuracy: LocationAccuracy.low,
forceAndroidLocationManager: false)
.then((currloc) {})

React Native, Invariant Violation: Native component for "AIRMap" does not exist

I'm trying to install react-native-maps
I followed the document for installation.
My install process was like below.
I used react-native link instead of cocoaPod.
npm i react-native-maps --save
myProj.xcodeproj/Libraries => Add files to "myProj" click
add myProj/node_modules/react-native-maps/lib/ios/AirMaps.xcodeproj
myProj click => Build Phases, Link Binary with libraries => add libArMaps.a
react-native link react-native-maps
However, build failed.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/dadumvu/work/foodup-mobile-RN/ios/build/Build/Intermediates.noindex/AirMaps.build/Debug-iphonesimulator/AirMaps.build/Objects-normal/x86_64/AIRGoogleMapPolygonManager.o AirGoogleMaps/AIRGoogleMapPolygonManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
My version's here.
"react-native-maps": "^0.21.0"
"react-native": "0.55.4"
If anyone could solve this issue, please let me know about it.
Thank you.
like this How to fix"AIRMap" was not found in the UIManager error in react native?
Add to ios/YOUR_PROJECT_NAME/AppDelegate.m
#import GoogleMaps; //add this line if you want to use Google Maps
and
[GMSServices provideAPIKey:#"_YOUR_API_KEY_"]; // add this line using the api key obtained from Google Console

Angular 6 - Uncaught ReferenceError: module is not defined vendor.js

I have recently upgraded a .net Core (2.1) / Angular 6 SPA app to the latest versions. I seemed to have done everything correctly at one point, but I made a change that broke the http (port 5000) app. I get an error:
vendor.js:1 Uncaught ReferenceError: module is not defined
at vendor.js:1
This is the first line of the vendor.js file. When I run the app using port 5001 (https), everything seems to work fine. I cannot figure out why there is a difference in the two websites as they are hitting the same code base.
To begin this upgrade, I started with the official dotnet core 2.1 Angular SPA and upgrade angular from 5 to 6.
I had this exact error and fixed it by changing the port number for the App URL in the Project Properties.
Hope this helps, however I'm still not sure what caused the issue.

Ionic Images not showing on first page load

im having an issue with images located on src/assets/images
Here's my ionic info output:
$ ionic info
cli packages: (C:\Users\Win 7\AppData\Roaming\npm\node_modules)
#ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
#ionic/app-scripts : 3.1.8
Cordova Platforms : android 7.0.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v8.11.1
npm : 5.6.0
OS : Windows 7
Environment Variables:
ANDROID_HOME : C:\Users\Win 7\AppData\Local\Android\Sdk
Misc:
backend : pro
When the page loads the first time images dont load, then i exit the page and re-enter to it again and the images are here x)
I used <ion-img src="..."></ion-img> tag
If you are directly passing the image path from assets as the source of , then use below code will fix the x sign issue:
<img src="assets/images/logo.png">
This is how you can insert image in your Ionic application.
<img src="assets/icon/myImage.png" class="image-responsive">

Cocos2d-X how to change Android minSDKVersion

I have created my cocos2d-X application using the create android script. I now want to lower the min sdk version in the Android Manifest, but that gives me an error t
Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml
How do i fix this ? Will i have to create a new project with lower SDK Version ?
Kind Regards,
Muhammad Mateen
You can change in Cocos2d-x in Application.mk file
Like this
APP_PLATFORM := android-9