native.showPopup("twitter") not working in App example project

Hi,

when I use the recommended App sample project in the newer Enterprise builds, everything works fine, except the Corona-created plugins reciding in the Applications/CoronaEnterprise folder. They don’t seem to be picked up by the project. It’s the same thing if I build for iOS device or xcode sim. I have confirmed that our lua code works fine by building with the Corona sim and then testing the twitter button.

Is there anything specific we need to do when building with Enterprise? I got the impression that copying CoronaEnterprise to the Applications folder and migrate our lua files and assets to the Corona folder inside the App should be all.

As a sidenote, there is a warning in Xcode about a missing 568h splash. We have that splash in the Corona folder. How do we solve that? I dont like building for the AppStore with a warning, might turn out that iPhone 5 is not working when the app goes live. [import]uid: 21746 topic_id: 34483 reply_id: 334483[/import]

in non-enterprise version it worked well, i tested this on few devices. I found that links has no usage thou, maybe you are referring to this ?

tom [import]uid: 111283 topic_id: 34483 reply_id: 137092[/import]

Hi,

no this is an Enterprise specific question. The native-popup-twitter plugin in the ~/Applications/CoronaEnterprise/Plugins is not working in Enterprise builds. No error is thrown or anything. When I tap the twitter button in our app, nothing happens. If I build the same app with the Corona simulator, everything works fine. But we need to build with Corona Enterprise since we have created plugins for Chartboost and TapJoy. [import]uid: 21746 topic_id: 34483 reply_id: 137093[/import]

But your point about links needs to be answered as well: What is the purpose, Coronalabs? Adding a link/url in the twitter options makes no difference to what’s tweeted. [import]uid: 21746 topic_id: 34483 reply_id: 137094[/import]

Any Coronalabs represenative around to answer this, please? [import]uid: 21746 topic_id: 34483 reply_id: 137114[/import]

I’ll ask for you.

[import]uid: 199310 topic_id: 34483 reply_id: 137153[/import]

The twitter functionality is in a plugin. This means different things depending on which product you are using:

* For Corona SDK, we pre-bake the plugin into the core so you don’t have to worry about it. That’s why it works there.

* For Corona Enterprise, we are moving several features into plugins that you can optionally link against. This allows you to optimize your binary size. For the twitter support on iOS, you have to explicitly add the plugin to your Xcode project so it gets linked in. This plugin comes in the form of a static library located at: CoronaEnterprise/Plugins/native-popup-twitter/ios/libnative-popup-twitter.a

The latter wasn’t documented, so I’ve updated the twitter popup section in native.showPopup. It will appear in the next API daily build docs. [import]uid: 26 topic_id: 34483 reply_id: 137189[/import]

Hi Walter,

makes sense. :slight_smile: Added the libnative-popup-twitter.a plugin to the project, and things work as expected now.

Then there’s only 3 remaining questions right now:

  1. What is the purpose of the link/url that can be added to the twitter popup options?
  2. What should we do with the warning about the missing 568h@2x splash. The file is in the project root together with all the other splashes.
  3. Facebook does not work when using publish_actions instead of publish_stream. What to do?

Thanks! [import]uid: 21746 topic_id: 34483 reply_id: 137193[/import]

in non-enterprise version it worked well, i tested this on few devices. I found that links has no usage thou, maybe you are referring to this ?

tom [import]uid: 111283 topic_id: 34483 reply_id: 137092[/import]

Hi,

no this is an Enterprise specific question. The native-popup-twitter plugin in the ~/Applications/CoronaEnterprise/Plugins is not working in Enterprise builds. No error is thrown or anything. When I tap the twitter button in our app, nothing happens. If I build the same app with the Corona simulator, everything works fine. But we need to build with Corona Enterprise since we have created plugins for Chartboost and TapJoy. [import]uid: 21746 topic_id: 34483 reply_id: 137093[/import]

But your point about links needs to be answered as well: What is the purpose, Coronalabs? Adding a link/url in the twitter options makes no difference to what’s tweeted. [import]uid: 21746 topic_id: 34483 reply_id: 137094[/import]

Any Coronalabs represenative around to answer this, please? [import]uid: 21746 topic_id: 34483 reply_id: 137114[/import]

I’ll ask for you.

[import]uid: 199310 topic_id: 34483 reply_id: 137153[/import]

The twitter functionality is in a plugin. This means different things depending on which product you are using:

* For Corona SDK, we pre-bake the plugin into the core so you don’t have to worry about it. That’s why it works there.

* For Corona Enterprise, we are moving several features into plugins that you can optionally link against. This allows you to optimize your binary size. For the twitter support on iOS, you have to explicitly add the plugin to your Xcode project so it gets linked in. This plugin comes in the form of a static library located at: CoronaEnterprise/Plugins/native-popup-twitter/ios/libnative-popup-twitter.a

The latter wasn’t documented, so I’ve updated the twitter popup section in native.showPopup. It will appear in the next API daily build docs. [import]uid: 26 topic_id: 34483 reply_id: 137189[/import]

Hi Walter,

makes sense. :slight_smile: Added the libnative-popup-twitter.a plugin to the project, and things work as expected now.

Then there’s only 3 remaining questions right now:

  1. What is the purpose of the link/url that can be added to the twitter popup options?
  2. What should we do with the warning about the missing 568h@2x splash. The file is in the project root together with all the other splashes.
  3. Facebook does not work when using publish_actions instead of publish_stream. What to do?

Thanks! [import]uid: 21746 topic_id: 34483 reply_id: 137193[/import]

I’m having the same issue with the Twitter share/ popup (It’s failing siliently), but seems like the libnative-popup-twitter has been removed from the plugins.

Any update on most recent implementation? Says nothing in the docs.

Hi @hashapps.ltd,

The plugin binary should be in the last public release of Corona Enterprise tgz (not the plugins zip).

Best regards,

Brent

Hi Brent,

I checked in the Corona.Enterprise.2015.2539.tgz/Plugins but only see a “licensing-google” folder. I do not find the “libnative-popup-twitter” anywhere

Hi @hashapps.ltd,

Please check the most recent public build files for this, not the most recent daily.

Thanks,

Brent

BTW, the native-popup-twitter plugin has been deprecated in favor of the social plugin:

http://docs.coronalabs.com/plugin/CoronaProvider_native_popup_social/index.html

This is b/c Apple has deprecated the corresponding iOS APIs that the native-popup-twitter plugin was using.