No Such Module ‘Parse’

I just had this problem, and I got it to work by doing this: I opened my Target > Build Settings > Search Paths > Framework Search Paths. I added two values: $(PROJECT_DIR) and $(inherited) I don’t know why these were empty in the first place, but there you have it.

Parse + Stripe iOS main.js

Finally. OK so here is the most basic code that WORKS for using Parse + Stripe. iOS Code – (IBAction)save:(id)sender { STPCard *card = [[STPCard alloc] init]; card.number = self.paymentTextField.cardNumber; card.expMonth = self.paymentTextField.expirationMonth; card.expYear = self.paymentTextField.expirationYear; card.cvc = self.paymentTextField.cvc; NSLog(@”%@, %@”, self.paymentTextField.cvc, self.paymentTextField.cardNumber); [[STPAPIClient sharedClient] createTokenWithCard:card completion:^(STPToken *token, NSError *error) { if (error) { NSLog(@”up … Read more

Parse request.object.get(“KEY”) always returns undefined

Finally I was able to solve this. This is definitely a bug in Parse’s Javascript SDK. I changed the Javascript SDK version in the global.json back to version “1.4.2” instead of “latest”, uploaded this to the cloudcode folder and everything went back to normal. You can also test other versions, maybe v1.5.0 is working too, … Read more

Method load() defines Objective-C class method ‘load’, which is not permitted by Swift 1.2

There is an NSHispster article about method swizzling that touches on this in different context: Unfortunately, a load class method implemented in Swift is never called by the runtime, rendering that recommendation an impossibility. Instead, we’re left to pick among second-choice options: Implement method swizzling in initialize. This can be done safely, so long as … Read more

Exception when opening Parse push notification [closed]

After spending few hours. Found a solution: Implement your receiver and extends ParsePushBroadcastReceiver class. Receiver.java public class Receiver extends ParsePushBroadcastReceiver { @Override public void onPushOpen(Context context, Intent intent) { Log.e(“Push”, “Clicked”); Intent i = new Intent(context, HomeActivity.class); i.putExtras(intent.getExtras()); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); } } Use it in manifest, (Instead of using ParsePushBroadcastReceiver) Code for project’s manifest: <receiver … Read more

Swift performSegueWithIdentifier not working

[Assuming that your code is not crashing, but rather just failing to segue] At least one problem is: self.performSegueWithIdentifier(“Test”, sender: self) should be: dispatch_async(dispatch_get_main_queue()) { [unowned self] in self.performSegueWithIdentifier(“Test”, sender: self) } Remember that all UI operations must be performed on the main thread’s queue. You can prove to yourself you’re on the wrong thread … Read more

Recyclerview Adapter and Glide – same image every 4-5 rows

The answers here are incorrect, although they’re on the right track. You need to call Glide#clear(), not just set the image drawable to null. If you don’t call clear(), an async load completing out of order may still cause view recycling issues. Your code should look like this: @Override public void onBindViewHolder(ViewHolder holder, int position) … Read more

If no Table View results, display “No Results” on screen

You can easily achieve that by using backgroundView property of UITableView. Objective C: – (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { NSInteger numOfSections = 0; if (youHaveData) { yourTableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine; numOfSections = 1; yourTableView.backgroundView = nil; } else { UILabel *noDataLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, yourTableView.bounds.size.width, yourTableView.bounds.size.height)]; noDataLabel.text = @”No data available”; noDataLabel.textColor = [UIColor blackColor]; noDataLabel.textAlignment … Read more

How to use Google Login API with Cordova/Phonegap

Google has dropped support for the accepted answer above! After April 20th 2017 use of the In-App browser as described by @Deep Mehta will no longer be supported. If you use the accepted answer then it is going to start failing very soon. Here’s Google’s post about the change: https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html Luckily there’s a new plugin … Read more