mobilechromeapps / cordova-plugin-chrome-apps-identity Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
Im opening this issue here as well, since I got no answer by the admob plugin developer yet. Issue link
Im a using google cca to build a cordova app, but after adding the chrome.identity Plugin and Cordova admob pro, I cant build the app anymore. The terminal error says: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Lcom/google/andr
oid/gms/actions/ReserveIntents; (Full error log below)
System Details
Windows
cca v0.7.0
If you need anything else please let me know.
Replication Steps
cca create app
cd app
cca platform add android
"permissions": ["<all_urls>", "identity"]
cca build android
Builds fine.cca plugin add com.google.cordova.admob
cca build android
FailsFull error log from terminal
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dexArmv7Debug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\TsoumiAc\AppData\Local\Android\android-sdk\build-tools\22.0.1\d
x.bat --dex --no-optimize --output C:\Users\TsoumiAc\Desktop\app\platforms\andro
id\build\intermediates\dex\armv7\debug --input-list=C:\Users\TsoumiAc\Desktop\ap
p\platforms\android\build\intermediates\tmp\dex\armv7\debug\inputList.txt
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/andr
oid/gms/actions/ReserveIntents;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.ja
va:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:
554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:
535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main
.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 24.141 secs
C:\Users\TsoumiAc\Desktop\app\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\Users\TsoumiAc\Desktop\app\pl
atforms\android\gradlew cdvBuildDebug -b C:\Users\TsoumiAc\Desktop\app\platforms
\android\build.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: C:\Users\TsoumiAc\Desktop\app\platfo
rms\android\cordova\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: C:\Users\TsoumiAc\Desktop\app\platforms\android\cordova\build.bat: Comman
d failed with exit code 1
at ChildProcess.whenDone (C:\Users\TsoumiAc\AppData\Roaming\npm\node_modules
\cca\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131
:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1008:16)
at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
Hi,
Is there plans to integrate the Google Sigin-in for iOS into this plugin?
https://developers.google.com/identity/sign-in/ios/
Apple has rejected one of our apps for jumping to safari to complete oauth.
Hello there,
First thanks for the plugin!
In the case the Play-store in not present, the fallback is used, no problem there.
However I cannot figure out how to switch or logout user.
The flow:
Edit: I just found the following lines in the plugin code:
if ("removeCachedAuthToken".equals(action)) {
callDetails.token = args.getString(0);
callDetails.signOut = args.getBoolean(1);
..
and
exec(callback, null, 'ChromeIdentity', 'removeCachedAuthToken', [details.token, details.signOut]);
I am going to test details.signOut..
Please add a line in your doc about it.. as the chrome doc don't mentioned it.
https://developer.chrome.com/apps/identity#method-removeCachedAuthToken
Cheers!
Because of its dependence on cordova-plugin-google-plus-ios this app references the following frameworks
<framework src="GooglePlus.framework" custom="true" />
<framework src="AddressBook.framework" />
<framework src="AssetsLibrary.framework" />
<framework src="Foundation.framework" />
<framework src="CoreLocation.framework" />
<framework src="CoreMotion.framework" />
<framework src="CoreGraphics.framework" />
<framework src="CoreText.framework" />
<framework src="MediaPlayer.framework" />
<framework src="Security.framework" />
<framework src="SystemConfiguration.framework" />
I believe this is causing an issue with ios app submission- even though my app does not ask for permission for the photo library, it is being rejected with the following note
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
當我嘗試使用cordoa plugin add org.chromiun.identify
會有錯誤訊息說找不到這個這個外掛
若透過網站尋找也還是找不到
http://plugins.cordova.io/#/search?search=org.chromiun.identify
chrome.identity.removeCachedAuthToken never seems to finish. Callback function is never called.
Other chrome identity functions appear to be working (getAuthToken is fine). No related output appears to be in the log file either.
How do I use Identity without Google Play Services when using this plugin outside the context of a Chrome App. I am trying to use the web client id on the web-based fallback with chrome.runtime.setManifest, but don't know how.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.