docusign / mobile-android-sdk

The Official Docusign Android SDK for integrating e-signature & signing documents. Click the link below to view SDK API Documentation https://docusign.github.io/mobile-android-sdk/
Other
16 stars 12 forks source link

File uri in build envelope method #13

Closed insha786 closed 3 years ago

insha786 commented 3 years ago

hi i am trying to give uri as file = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "/ResumeAndroid.pdf"); f= new File("file://"+file) ; .uri(f.toString()) .name("ResumeAndroid.pdf") its giving me error as : Unknown exception in loading document: File is not a valid, parseable, password-free PDF tried also .uri("file:///storage/emulated/0/ResumeAndroid.pdf") .name("ResumeAndroid.pdf") but same error can you suggest any solution?

in phone path when clicking on file details to get path its showing---> storage/emulated/0/documents/ResumeAndroid.pdf"

also in logcat i am getting 2020-12-28 19:15:52.108 20175-20175/com.example.docusignapp W/PDFTronToolsInitializer: Tried to auto-initialize PDFTron SDK but no license key was found. Please add your license as described in this article: https://www.pdftron.com/documentation/android/guides/getting-started/add-license. Kindly help

naveentds commented 3 years ago

Hi @insha786, Can you try the following:

File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "/ResumeAndroid.pdf"); URI fileURI = file.toURI(); Then,

.uri(fileURI.toString());

Let us know how it goes.

insha786 commented 3 years ago

It's working fine now.

Can you please let me help how to skip logging in Android sdk.I have integrated sdk with my app but I want to skip login. How to use jwt for this and which api is needed to get called.

Thanks for your help!

Insha

On Wed, 6 Jan, 2021, 11:49 pm naveentds, notifications@github.com wrote:

Hi @insha786 https://github.com/insha786, Can you try the following:

File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "/ResumeAndroid.pdf"); URI fileURI = file.toURI(); Then,

.uri(fileURI.toString());

Let us know how it goes.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docusign/mobile-android-sdk/issues/13#issuecomment-755471079, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMSU2A66FLWZ4YIP4LZCMDSYSSTLANCNFSM4VMHXLLA .

naveentds commented 3 years ago

@insha786
You can refer to the answer at https://github.com/docusign/mobile-android-sdk/issues/14 for achieving that.

inshaaziz commented 3 years ago

Thank you for your response!

Helped alot

On Thu, 7 Jan, 2021, 12:48 am naveentds, notifications@github.com wrote:

@insha786 https://github.com/insha786 You can refer to the answer at #14 https://github.com/docusign/mobile-android-sdk/issues/14 for achieving that.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/docusign/mobile-android-sdk/issues/13#issuecomment-755546201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJ7D72C5BJ27H4V2QDZWETSYSZOVANCNFSM4VMHXLLA .

insha786 commented 3 years ago

Hi Team,

I am trying to integrate latest release of android sdk with my Android app however I am facing dependency conflicts due to androidx version. Please let me know is there any sdk version which do not have androidx dependency.

Thanks & Regards Insha

On Thu, 7 Jan, 2021, 1:50 pm inshaaziz, notifications@github.com wrote:

Thank you for your response!

Helped alot

On Thu, 7 Jan, 2021, 12:48 am naveentds, notifications@github.com wrote:

@insha786 https://github.com/insha786 You can refer to the answer at #14 https://github.com/docusign/mobile-android-sdk/issues/14 for achieving that.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/docusign/mobile-android-sdk/issues/13#issuecomment-755546201 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AQJ7D72C5BJ27H4V2QDZWETSYSZOVANCNFSM4VMHXLLA

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docusign/mobile-android-sdk/issues/13#issuecomment-755961858, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMSU2FNI32ZN65KLAUNNRTSYVVELANCNFSM4VMHXLLA .

naveentds commented 3 years ago

@insha786 DocuSign Android SDK has a requisite for androidX dependency and we don't support non-androidX. We suggest you to migrate your app to androidX https://developer.android.com/jetpack/androidx/migrate.

insha786 commented 3 years ago

Thank you for your response.

Currently our app is not supporting androidx may be aftter sometime we will migrate our application.

Thankyou so much!

On Tue, 12 Jan, 2021, 10:51 pm naveentds, notifications@github.com wrote:

@insha786 https://github.com/insha786 DocuSign Android SDK has a requisite for androidX dependency and we don't support non-androidX. We suggest you to migrate your app to androidX https://developer.android.com/jetpack/androidx/migrate.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docusign/mobile-android-sdk/issues/13#issuecomment-758811933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMSU2BSMKGQUFW4VIGSGJDSZSAJXANCNFSM4VMHXLLA .

inshaaziz commented 3 years ago

Hi Naveed

I am trying to call Docusignapp(different app having one activity) from a test app(other app). I am facing one issue after finishing signing in on success method of online signing I have called finish method also but control never goes to onaActivitResult of calling activity. It goes into loop calling docusign then onActivifystart.

Kindly help!

On Tue, 12 Jan, 2021, 10:59 pm insha786, notifications@github.com wrote:

Thank you for your response.

Currently our app is not supporting androidx may be aftter sometime we will migrate our application.

Thankyou so much!

On Tue, 12 Jan, 2021, 10:51 pm naveentds, notifications@github.com wrote:

@insha786 https://github.com/insha786 DocuSign Android SDK has a requisite for androidX dependency and we don't support non-androidX. We suggest you to migrate your app to androidX https://developer.android.com/jetpack/androidx/migrate.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/docusign/mobile-android-sdk/issues/13#issuecomment-758811933 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AFMSU2BSMKGQUFW4VIGSGJDSZSAJXANCNFSM4VMHXLLA

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/docusign/mobile-android-sdk/issues/13#issuecomment-758816959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJ7D7722OIAJ5F7AXILDH3SZSBIXANCNFSM4VMHXLLA .

naveentds commented 3 years ago

Hi @inshaaziz It's not an issue in SDK. Can you check in your DocuSignApp, once you receive success callback for online signing, you need to invoke setResult(OK, data) and then invoke finish(). Then, you will get control over onActivityResult() of the calling activity of your TestApp. In onActivityResult() of your TestApp, make sure you don't invoke again startActivity of your DocuSignApp.

insha786 commented 3 years ago

Thank you, it worked..

On Fri, 12 Feb, 2021, 7:50 am naveentds, notifications@github.com wrote:

Hi @inshaaziz https://github.com/inshaaziz It's not an issue in SDK. Can you check in your DocuSignApp, once you receive success callback for online signing, you need to invoke setResult(OK, data) and then invoke finish(). Then, you will get control over onActivityResult() of the calling activity of your TestApp. In onActivityResult() of your TestApp, make sure you don't invoke again startActivity of your DocuSignApp.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docusign/mobile-android-sdk/issues/13#issuecomment-777925258, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMSU2BHXQ27VAMVWPXUGW3S6SGATANCNFSM4VMHXLLA .