Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

native.canShowPopup always returning false
Started by gianmichele Jul 18 2018 02:42 PM

4 replies to this topic
social popup
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

gianmichele

[GLOBAL: userInfoPane.html]
gianmichele
  • Enthusiast

  • 35 posts
  • Corona SDK

Hi there,

 

not sure when it started happening, but native.canShowPopup("social", <service>) is always returning false, even though the app is correctly installed on device (iOS in my case). 

The strange thing is that if I use native.showPopup it all works and in fact it posts to social media sites without any issue.

 

Any idea why? Am I missing something obvious?

 

Thanks]]



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,331 posts
  • Corona Staff

The social popup on iOS is really a pre-iOS 8 feature. Starting with iOS 8, Apple wants you to use the "Activity" plugin. It's possible that iOS 11 has in some way broken the the API that canShowPopup depends on.

 

Rob



[TOPIC: post.html]
#3

gianmichele

[GLOBAL: userInfoPane.html]
gianmichele
  • Enthusiast

  • 35 posts
  • Corona SDK

I thought that would be the case.

 

Any easy way to check when those services are available?



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,331 posts
  • Corona Staff

The minimum iOS we support is iOS 8. You should be using the Activity plugin instead.

 

Rob



[TOPIC: post.html]
#5

gianmichele

[GLOBAL: userInfoPane.html]
gianmichele
  • Enthusiast

  • 35 posts
  • Corona SDK

Yep, got it!

 

Thanks Rob




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: social, popup