[AC-5498] Social Framework
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Not Our Bug |
Resolution Date | 2018-01-09T14:10:59.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | IOS |
Reporter | Andreas Pingas |
Assignee | Shak Hossain |
Created | 2018-01-08T14:36:20.000+0000 |
Updated | 2018-01-09T14:10:59.000+0000 |
Description
When i use var Social = require('dk.napp.social');
Social.activityView({
text: 'Message'
});
Social.framework Titanium Mobile module
And then i cancel, the “focus” listener stops everywhere in the app.
Hello, Can you elaborate your issue a little bit? Perhaps provide a sample test code/app, and a guide how to test the issue? Thanks.
When you change from tab 1 to tab2 and back you will find that it appears in console tab 1 or tab 2. If at tab 1 you select Activity, and then cancel, and you repeat process going from tab 1 to tab 2 you will notice that you cant view any status change to console. As a result, "focus" does not work. It will start working properly when "focus" is lost from tabGroup, which means in tab2 the window opens. var win1 = Ti.UI.createWindow({ title:'Window 1', backgroundColor:'white', layout: 'vertical' }); var button1 = Ti.UI.createButton({ width:100, height:35, top:115, bubble:false, title:'Activity' }); win1.add(button1); var win2 = Ti.UI.createWindow({ title:'Window 2', backgroundColor:'white', layout: 'vertical' }); var button2 = Ti.UI.createButton({ width:100, height:35, top:115, bubble:false, title:'Window' }); win2.add(button2); var tab1 = Ti.UI.createTab({ title:'Tab 1', window:win1 }); var tab2 = Ti.UI.createTab({ title:'Tab 2', window:win2 }); var tabGroup = Titanium.UI.createTabGroup({ tabs:[tab1, tab2] }); win1.addEventListener('focus', function(e) { Ti.API.info('focus 1'); }); win2.addEventListener('focus', function(e) { Ti.API.info('focus 2'); }); tabGroup.open(); button1.addEventListener('click', function(e) { var Social = require('dk.napp.social'); Social.activityView({ text: 'Message' }); }); button2.addEventListener('click', function(e) { var win3 = Ti.UI.createWindow({ backgroundColor:'white', layout: 'vertical' }); var button3 = Ti.UI.createButton({ width:100, height:35, top:115, bubble:false, title:'Close' }); win3.add(button3); button3.addEventListener('click', function(e) { win3.close(); }); win3.open(); });
This is a third-party community module. Please contact the vendor via the [official repository](https://github.com/viezel/TiSocial.Framework), thanks!