Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 150

Hmmm
buzztouch Evangelist
Profile
Posts: 67
Reg: Sep 17, 2013
location unknow...
6,670
01/28/15 11:37 AM (9 years ago)

Login Plugin Redirect after Login

The login plugin functions properly except it does not redirect after logging in. Buttons menu -> login plugin -> would like it to redirect to a menu screen after successful login. Is there a way to re-direct? Thanks.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/28/15 04:48 PM (9 years ago)
what does it currently do after unlocking?
 
Hmmm
buzztouch Evangelist
Profile
Posts: 67
Reg: Sep 17, 2013
location unknow...
6,670
like
01/28/15 05:17 PM (9 years ago)
Login -> returns the confirmation message "Logged In" -> then sits there without an auto re-direction to a menu/page, or manual redirect link.
 
Hmmm
buzztouch Evangelist
Profile
Posts: 67
Reg: Sep 17, 2013
location unknow...
6,670
like
01/28/15 05:52 PM (9 years ago)
Login -> returns the confirmation message "Logged In" -> then sits there without an auto re-direction to a menu/page, or manual redirect link.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
01/28/15 06:10 PM (9 years ago)
For iOS try adding the following line of code at line 274 after "//isLoggedIn" in the BT_screen_settingsLogIn.m file: [self loadScreenWithItemId:@"item_id_here"]; In order to load the correct screen, put the item id of the menu screen (usually a random string of letters and numbers) in the quotes where the placeholder is. Does this help? Jake
 
Hmmm
buzztouch Evangelist
Profile
Posts: 67
Reg: Sep 17, 2013
location unknow...
6,670
like
01/28/15 06:12 PM (9 years ago)
Jake, Will try the iOS fix. Do you by have anything for android? Thanks for sending.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/28/15 07:58 PM (9 years ago)
cool stuff Jake! in android you can use : loadScreenWithNickname("theScreensName"); to load the screen by its name or you can load it by the id: loadScreenWithItemId("3453535353453535"); Ive never used the plugin so not sure where to put it
 
Thomas83
Android Fan
Profile
Posts: 1
Reg: Feb 11, 2015
Zurich, Switzer...
10
like
02/17/15 12:47 AM (9 years ago)
Hi, and first sorry that I make this my first post without introducing myself but I had the exact same problem yesterday evening. Just in case this is still needed - you need to use what CMCOFFEE mentioned, edit the settingsLogIn.java class and add it within the If(validLogIn) block after the icon and button have been set: //set button, image... submitButton.setText(getString(R.string.logOut)); iconStatusView.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.bt_screen_settingslogin_dot_green)); //redirect loadScreenWithNickname("yourScreenNickname"); Works fine - I just wonder how smart it is to transmit clear text passwords using the default URL you can set in the plugin... I strongly recommend encoding this info prior to sending it! - Thomas
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.