GithubHelp home page GithubHelp logo

doordeck / doordeck-sdk-react-native Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 8.0 1.24 MB

License: Apache License 2.0

Java 3.65% Objective-C 1.14% Swift 92.64% Ruby 1.26% TypeScript 0.81% JavaScript 0.26% Objective-C++ 0.24%

doordeck-sdk-react-native's People

Contributors

dependabot[bot] avatar endritbajrami avatar greglovescoding avatar karltaylor avatar marwan87 avatar rafaruiz avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

doordeck-sdk-react-native's Issues

Update gradle wrapper

Hey guys we are just updating our app with React Native 0.67 which uses gradle wrapper 7.2 it looks like Plugin maven was deprecated with gradle 7.

The full stack trace:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file 'C:\Repositories\Passport\node_modules@doordeck\react-native-doordeck-sdk\android\build.gradle' line: 16

  • What went wrong:
    A problem occurred evaluating project ':@doordeck_react-native-doordeck-sdk'.

Plugin with id 'maven' not found.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':@doordeck_react-native-doordeck-sdk'.

com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

  • Get more help at https://help.gradle.org/

BUILD FAILED in 7s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file 'C:\Repositories\Passport\node_modules@doordeck\react-native-doordeck-sdk\android\build.gradle' line: 16

  • What went wrong:
    A problem occurred evaluating project ':@doordeck_react-native-doordeck-sdk'.

Plugin with id 'maven' not found.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':@doordeck_react-native-doordeck-sdk'.

com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

  • Get more help at https://help.gradle.org/

BUILD FAILED in 7s

at makeError (C:\Repositories\Passport\node_modules\execa\index.js:174:9)
at C:\Repositories\Passport\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (C:\Repositories\Passport\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (C:\Repositories\Passport\node_modules\@react-native-community\cli\build\index.js:192:9)

info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Api key has expired

Hello, I have received this error yesterday and doordeckSdk.showUnlock doesn't working...
image

Does anyone know what is the problem?
@marwan87 can you help me. please?

my version: "@doordeck/react-native-doordeck-sdk": "^1.1.5",

Doordeck calls initDoordeck when the app is in the background

Android devices and now newer IOS devices can open apps when the device approaches NFC tags.

In our case we are calling doordeckSdk.initDoordeck(authToken, darkMode, closeButton) after the user logs in. On android, once the device triggers the NFC tag a dropdown should be displayed showing all the apps that support NFC, however the Doordeck SDK seems to skip this altogether, opens our app and displays the following screen:

28057F09-342E-4394-BB2E-00F7E4EB7F4E

We see this from adb logcat before the screen appears:
03-29 18:07:11.551 3836 6081 E WindowManager: win=Window{21e0b98 u0 com.*****/com.doordeck.sdk.ui.unlock.UnlockActivity} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2798 com.android.server.wm.WindowManagerService.relayoutWindow:2496 com.android.server.wm.Session.relayoutForTranslate:302 android.view.IWindowSession$Stub.onTransact:518 com.android.server.wm.Session.onTransact:186 android.os.Binder.execTransact:739

Once this screen is dismissed the app is closed.

This is interfering with some of our other NFC functionalities which worked prior to adding this SDK.
Is there anything we should be doing, or is there a way to disable the modal from being run by SDK automatically?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.