missing variable Google api key for android - ionic-framework

missing variable Google api key for android
Failed to install 'uk.co.workingedge.phonegap.plugin.launchnavigator':
Error: Variable(s) missing: GOOGLE_API_KEY_FOR_ANDROID at
Object.mergeVariables
(/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/pgb-cordova-lib/src/plugman/variable-merge.js:58:15) at
/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/pgb-cordova-lib/src/plugman/install.js:315:44
at _fulfilled
(/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:787:54) at self.promiseDispatch.done
(/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch
(/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:749:13) at
/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:557:44
at flush
(/opt/npm-packages/lib/node_modules/pgb-plugman-151/node_modules/q/q.js:108:17) at _combinedTickCallback (internal/process/next_tick.js:132:7) at
process._tickCallback (internal/process/next_tick.js:181:9)
Variable(s) missing: GOOGLE_API_KEY_FOR_ANDROID

See: https://github.com/dpa99c/phonegap-launch-navigator#phonegap-build
Get maps api key from google and add to config.xml

Related

AWS Amplify, init failed

I'm trying to integrate AWS Amplify to my flutter project but having this issue while trying to run the amplify init command
init failed
TypeError [ERR_INVALID_ARG_TYPE]: The 'request' argument must be string. Received type undefined
at Object.onSuccess (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/init-steps/s9-onSuccess.ts:26:26)
at Object.exports.run (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/commands/init.ts:24:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Object.executeAmplifyCommand (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/index.ts:181:5)
at executePluginModuleCommand (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/execution-manager.ts:161:3)
at Object.executeCommand (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/execution-manager.ts:26:5)

IBM Cloud App ID' s custom identity flow:InternalOAuthError occurs

I use IBM Cloud App ID' and I want to use LinkedIn as a provider.
However, "InternalOAuthError" occurs at the time of app approving.
There is a sample on the IBM Cloud blog.
Sign In Your App Users With Any Identity Provider Using App ID
I tried the sample app along this flow. Login to LinkedIn seems to have succeeded, but the following error occurred when app was approved.
InternalOAuthError: failed to fetch user profile
at _oauth2.get (C:\xxx\AppIdCustomIdentity\node_modules\passport-linkedin-oauth2\lib\oauth2.js:70:23)
at passBackControl (C:\xxx\AppIdCustomIdentity\node_modules\oauth\lib\oauth2.js:132:9)
at IncomingMessage.<anonymous> (C:\xxx\AppIdCustomIdentity\node_modules\oauth\lib\oauth2.js:157:7)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Please help!!
When I tried this post,"InternalOAuthError" no longer occurs.
But another error has occurred.
Error: Failed to obtain tokens
at Request.request [as _callback] (C:\xxx\AppIdCustomIdentity\node_modules\ibmcloud-appid\lib\token-manager\token-manager.js:118:13)
at Request.self.callback (C:\xxx\AppIdCustomIdentity\node_modules\request\request.js:185:22)
at Request.emit (events.js:182:13)
at Request.<anonymous> (C:\xxx\AppIdCustomIdentity\node_modules\request\request.js:1161:10)
at Request.emit (events.js:182:13)
at IncomingMessage.<anonymous> (C:\xxx\AppIdCustomIdentity\node_modules\request\request.js:1083:12)
at Object.onceWrapper (events.js:273:13)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
As suggested in this post (https://stackoverflow.com/a/56329029/10422503), looks like the passport-linkedin-oauth2 library has not been updated for the LinkedIn 2.0 APIs. Try using the fork suggested there
Looking at the stack trace it looks like the exception is coming from passport-linkedin-oauth2 module.
at _oauth2.get (C:\xxx\AppIdCustomIdentity\node_modules\passport-linkedin-oauth2\lib\oauth2.js:70:23)
Googling for InternalOAuthError: failed to fetch user profile +linkedin gives a few options you might want to try.

Failed to install 'cordova-plugin-file' - Ionic-cordova

I was trying to install the plugin
ionic cordova plugin add cordova-plugin-file
I'm getting error in cmd as
Failed to install 'cordova-plugin-file': Error: ENOENT: no such file
or director y, open
'D:\product\project-1\frontend\platforms\android\AndroidManifest.xml'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.parseElementtreeSync (D:\product\project-1\frontend\platforms\andr
oid\cordova\node_modules\cordova-common\src\util\xml-helpers.js:180:27)
at new AndroidManifest (D:\product\project-1\frontend\platforms\android\cord
ova\lib\AndroidManifest.js:29:20)
at AndroidProject.getPackageName (D:\product\project-1\frontend\platforms\an
droid\cordova\lib\AndroidProject.js:99:12)
at Api.addPlugin (D:\product\project-1\frontend\platforms\android\cordova\Ap
i.js:223:57)
at handleInstall (C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_
modules\cordova-lib\src\plugman\install.js:594:10)
at C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova
-lib\src\plugman\install.js:357:28
at _fulfilled (C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_mod
ules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\hi\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
(node:5240) UnhandledPromiseRejectionWarning: Error: ENOENT: no such
file or dir ectory, open
'D:\product\project-1\frontend\platforms\android\AndroidManifest.xm l'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.parseElementtreeSync (D:\product\project-1\frontend\platforms\andr
oid\cordova\node_modules\cordova-common\src\util\xml-helpers.js:180:27)
at new AndroidManifest (D:\product\project-1\frontend\platforms\android\cord
ova\lib\AndroidManifest.js:29:20)
at AndroidProject.getPackageName (D:\product\project-1\frontend\platforms\an
droid\cordova\lib\AndroidProject.js:99:12)
at Api.addPlugin (D:\product\project-1\frontend\platforms\android\cordova\Ap
i.js:223:57)
at handleInstall (C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_
modules\cordova-lib\src\plugman\install.js:594:10)
at C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova
-lib\src\plugman\install.js:357:28
at _fulfilled (C:\Users\hi\AppData\Roaming\npm\node_modules\cordova\node_mod
ules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\hi\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
(node:5240) UnhandledPromiseRejectionWarning: Unhandled promise
rejection. This error originated either by throwing inside of an async
function without a catch block, or by rejecting a promise which was
not handled with .catch(). (rejection id: 1) (node:5240) [DEP0018]
DeprecationWarning: Unhandled promise rejections are depre cated. In
the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.
ionic cordova rm platform android
Then install the plugin. Then add the platform back.

start a new project in IONIC error

i want to start a new project in IONIC with this command "ionic start myApps tabs" but i get this error :
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz) × Downloading - failed! Error: unable to verify the first certificate at Error (native) at TLSSocket. (_tls_wrap.js:1092:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:185:7) at TLSSocket._finishInit (_tls_wrap.js:610:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
please help me to solve it
Be sure that you have the latest node, cordova and ionic cli updates.
Try to stop all server instances. I mean stop the localhost:8080 server.

ionic2: Uploading source images to prepare for transformations failed?

I'm using ionic2, I want to set custom splash image so I set splash.png in ../myproject/resources/splash.png and then i run this command: ionic cordova resources --splash but I got this error:
Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:1140:19)
at Object.onceWrapper (events.js:314:30)
at emitNone (events.js:110:20)
at TLSSocket.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1059:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
what should i do?
the problem was the internet connection speed is low