Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Can't build with native.showPopup plugin?
Started by Studycat2 Aug 01 2018 01:40 AM

4 replies to this topic

Best Answer Rob Miracle , 01 August 2018 - 05:03 PM

The activity plugin is an iOS-only plugin. You have to use the "social" plugin on Android.

 

You can include the "supportedPlatforms" key to make sure it's not being fetched on Android builds:

["CoronaProvider.native.popup.activity"] = { 
    publisherId = "com.coronalabs", 
    supportedPlatforms = { iphone=true } 
},     

Rob

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Studycat2

[GLOBAL: userInfoPane.html]
Studycat2
  • Enthusiast

  • 66 posts
  • Corona SDK

Hi!
 
I'm trying to build an android app with some sample code provided by the corona website. The build, made with 2018.3301, fails with the following error:
 
Android build failed (5) after 3 seconds
Aug 01 05:34:24.951 ERROR: Build Failed: A device build error occurred on the server. 
                    
                    Error: Get plugin failed. 
                    
                    Plugin: `CoronaProvider.native.popup.activity` 
                    Publisher: `com.coronalabs` 
                    User Account: `dev2@xxx.net`
                    
                    BuildID: 5b617e9ea2330
                    
                    Error code: 5
 
 
Is this a corona-side problem? I have attached a project exhibiting the problem, and screenshots of my build options/the error window. How can I get this working? Will it work on any target app store, or just Google Play?
 
Thanks!
 
SimonAttached File  sharetest.zip   8.22KB   0 downloadsAttached File  Screen Shot 2018-07-31 at 10.28.20 AM.png   57.6KB   0 downloadsAttached File  Screen Shot 2018-08-01 at 5.31.45 PM.png   68.17KB   0 downloads


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,328 posts
  • Corona Staff

Is this still an issue? I just did a build of an app that uses that plugin and it worked fine.

 

Rob


  • Studycat2 likes this

[TOPIC: post.html]
#3

Studycat2

[GLOBAL: userInfoPane.html]
Studycat2
  • Enthusiast

  • 66 posts
  • Corona SDK

Is this still an issue? I just did a build of an app that uses that plugin and it worked fine.

 

Rob

 

Hi! My build still fails on Android using my provided project.

 

Using my sample code posted above, On iOS, it works fine. On Android, when I remove the ["CoronaProvider.native.popup.activity"] entry from the plugins table, it succeeds -- so it is definitely this that is causing the fail.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,328 posts
  • Corona Staff

  Best Answer

The activity plugin is an iOS-only plugin. You have to use the "social" plugin on Android.

 

You can include the "supportedPlatforms" key to make sure it's not being fetched on Android builds:

["CoronaProvider.native.popup.activity"] = { 
    publisherId = "com.coronalabs", 
    supportedPlatforms = { iphone=true } 
},     

Rob


  • Studycat2 likes this

[TOPIC: post.html]
#5

Studycat2

[GLOBAL: userInfoPane.html]
Studycat2
  • Enthusiast

  • 66 posts
  • Corona SDK

Thanks! That was the solution.




[topic_controls]
[/topic_controls]