I'm currently working on the navigation between two custom Visualforce Pages inside the Salesforce1 Mobile App. I'm prefer to do the navigation via Apex PageReference.
public static void navigate {
String str = 'javascript:sforce.one.navigateToSObject(\'' + Object.Id + '\')';
PageReference pageRef = new PageReference(str);
pageRef.setRedirect(true);
return pageRef;
}
But it do not work for me :(
thanks