Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26832] Android Share intent is not working.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 7.1.0
Fix Version/sn/a
Componentsn/a
Labelsandroid, engSchedule
Reporterrajanipv
AssigneeLokesh Choudhary
Created2019-02-05T22:53:08.000+0000
Updated2019-05-21T15:13:20.000+0000

Description

I have a Titanium app which uses Android Intents, Such as "A Share dialog appears and the user can select the applicationto send the text " on click event of a button. The Dialog was working perfectly with titanium sdk version 7.1.0. Recently I have upgraded to 7.3.0 the dialog is not showing on clicking the button. Tested all of the SDK version after that nothing is happening on clicking the button, also i didn't see any exception.

Attachments

FileDateSize
sample.zip2019-02-13T22:46:31.000+00004643563
Sample2.zip2019-02-11T23:30:37.000+00004762406

Comments

  1. rajanipv 2019-02-06

    Please help me on this. I am really stuck and not able to find a solution to fix this issue.
  2. Sharif AbuDarda 2019-02-07

    Hello, Please share a sample test code for us to verify the issue. Thanks.
  3. rajanipv 2019-02-11

    @Sharif AbuDarda attached a sample test code. running the app by typing "appc run -p android -T device -C on terminal. Thanks Rajani
  4. Rakhi Mitro 2019-02-13

    Hello, Thanks for sharing . Can you please provide minimal test code and test steps to reproduce the issue ?
  5. rajanipv 2019-02-13

    Hi, I have attached another sample test code "sample.zip" The flow is 1) From the first screen click on "BRANCH UNIVERSAL OBLECT" button. 2) Click on "INIT BUO" button from the second screen, then click on"SHARE SHEET" button. in the tiapp.xml i have used 7.5.0.GA when i changed this to 7.1.0.GA everything works as expected.
  6. Rakhi Mitro 2019-02-14

    Hello [~rajanipv], Thanks for sharing with us. Perform the same steps using 7.1.0.GA and got the following error:
       [ERROR] :  APSAnalyticsService: Error posting events: method POST must have a request body.
       [ERROR] :  APSAnalyticsService: java.lang.IllegalArgumentException: method POST must have a request body.
       [ERROR] :  APSAnalyticsService: 	at com.android.okhttp.Request$Builder.method(Request.java:259)
       [ERROR] :  APSAnalyticsService: 	at com.android.okhttp.internal.huc.JavaApiConverter.createOkResponseForCacheGet(JavaApiConverter.java:212)
       [ERROR] :  APSAnalyticsService: 	at com.android.okhttp.internal.huc.CacheAdapter.get(CacheAdapter.java:51)
       [ERROR] :  APSAnalyticsService: 	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:207)
       [ERROR] :  APSAnalyticsService: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:461)
       [ERROR] :  APSAnalyticsService: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
       [ERROR] :  APSAnalyticsService: 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:258)
       [ERROR] :  APSAnalyticsService: 	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
       [ERROR] :  APSAnalyticsService: 	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(Unknown Source:0)
       [ERROR] :  APSAnalyticsService: 	at com.appcelerator.aps.APSAnalyticsService$1.run(APSAnalyticsService.java:163)
       [ERROR] :  APSAnalyticsService: 	at java.lang.Thread.run(Thread.java:784)
       
    And using 7.5.0.GA, clicking on"SHARE SHEET" button ,nothing happens. Can you share the expected output that you get in 7.1.0.GA.
  7. rajanipv 2019-02-15

    Hi Rakhi Mitro, In SDK version 7.1.0.GA, we are getting a social share dialog with options like Gmail, Hangout etc this dialog is my expected result. Don't worry about the exception as you mentioned with 7.1.0. As you said the 7.5.0.GA is not showing this dialog on clicking the share sheet button. this is the issue i am facing after upgrading to 7.5.0.GA. Thanks Rajani

JSON Source