Coder Social home page Coder Social logo

EspDevice.provision, debug app no problem, but release app callback with createSessionFailed about esp-idf-provisioning-android HOT 7 CLOSED

Steven1937 avatar Steven1937 commented on August 13, 2024
EspDevice.provision, debug app no problem, but release app callback with createSessionFailed

from esp-idf-provisioning-android.

Comments (7)

KhushbuShah25 avatar KhushbuShah25 commented on August 13, 2024

Hi @Steven1937 , we have created a release build and uploaded that on PlayStore.
It is working fine.
So trying to understand the difference of release build. Do you have minify flag enabled in your app?

from esp-idf-provisioning-android.

Steven1937 avatar Steven1937 commented on August 13, 2024

Hi, yes, minifyEnabled for the release build, but in progaurd, I added " -keep class com.espressif.** {*; }", EspDevice.connectToDevice() no problem, but EspDevice.provision failed with initSession. just the same step like the demo(scan QR code and then connect, and after EventBus received the connected callback , then call EspDevice.provission)

from esp-idf-provisioning-android.

Steven1937 avatar Steven1937 commented on August 13, 2024

only difference from the demo is I removed the EspDevcie.scanNetwork step. diferectly go EspDevcice.provision to pair WiFi, debug build no problem , but release version failed with createSessionFailed

from esp-idf-provisioning-android.

Steven1937 avatar Steven1937 commented on August 13, 2024

only difference from the demo is I removed the EspDevcie.scanNetwork step. dierectly call EspDevcice.provision to pair WiFi, debug build no problem , but release version failed with createSessionFailed

from esp-idf-provisioning-android.

Steven1937 avatar Steven1937 commented on August 13, 2024

I confirmed if don't minify , then release version also works fine, but for the release version, minify is required, so how to solve this? thanks

from esp-idf-provisioning-android.

Steven1937 avatar Steven1937 commented on August 13, 2024

@KhushbuShah25 hello, is there any solutions? release version if minify enbled, then it cannot use SDK to sendDataToCustomEndPoint and cannot EspDevice.provission, proguard added "-keep class com.espressif.** {*; } " also did not work

from esp-idf-provisioning-android.

Steven1937 avatar Steven1937 commented on August 13, 2024

Thanks, i found the solutions, now no problem

from esp-idf-provisioning-android.

Related Issues (20)

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.