我正在尝试在Android Studio中使用Parse库.我在他们的网站上使用了基本示例,并将jar添加到libs文件夹以及添加为全局库.没有错误似乎没有任何效果:
Gradle: package com.parse does not exist
Gradle: package com.parse does not exist
Gradle: package com.parse does not exist
Gradle: cannot find symbol variable Parse
Gradle: cannot find symbol variable ParseAnalytics
Gradle: cannot find symbol class ParseObject
Gradle: cannot find symbol class ParseObject
Run Code Online (Sandbox Code Playgroud)
Android Studio在代码中没有错误.
我试图在用户成功登录到他们的帐户后切换视图控制器,但它无法正常工作.我不能直接使用segue,因为如果单击登录按钮,它将转到该视图控制器,无论信息是否正确.我已经尝试了所有我知道但没有成功的事情.这是我正在尝试的代码.
@IBAction func loginTapped(sender: AnyObject) {
let username = usernameField.text
let password = passwordField.text
if username.isEmpty || password.isEmpty {
var emptyFieldsError:UIAlertView = UIAlertView(title: "Please try again", message: "Please fill in all the fields we can get you logged in to your account.", delegate: self, cancelButtonTitle: "Try again")
emptyFieldsError.show()
}
PFUser.logInWithUsernameInBackground(username, password:password) {
(user: PFUser?, error: NSError?) -> Void in
if user != nil {
self.performSegueWithIdentifier("Klikur", sender: self)
} else {
if let errorString = error!.userInfo?["error"] as? String {
self.errorMessage = …Run Code Online (Sandbox Code Playgroud) 我需要格式化Parse的REST API for Facebookyyyy-MM-dd'T'HH:mm:ss.SSS'Z'指定的日期.我想知道什么是最轻量级的解决方案.
我想通过Facebook登录用户.在以前版本的swift 1.2中,一切都运行良好,但迁移后我似乎无法通过我的FB帐户登录,我仍然收到错误说:
-canOpenURL:URL失败:"fbauth:// authorize /?client_id = ... error:"此应用程序不允许查询方案fbauth"
你能帮帮我吗?
我有这个问题 - 只是为了测试目的,我添加ParseFile到ParseObject收到列表中的一个.它不是仅显示在该行中,而是显示每4-5行,有时更多,有时更少.我认为回收视图与此有关.奇怪的是,其他数据(从这个例子中删除)适用于position变量.
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
if(parseList.get(position).get("logo") != null){
ParseFile image = (ParseFile) parseList.get(position).get("logo");
String url = image.getUrl();
Glide.with(context)
.load(url)
.placeholder(R.drawable.piwo_48)
.transform(new CircleTransform(context))
.into(holder.imageView);
}
}
Run Code Online (Sandbox Code Playgroud) android parse-platform recycler-adapter android-recyclerview android-glide
[2014-07-15 23:57:43 - MozMeet] Proguard returned with error code 1. See console
[2014-07-15 23:57:43 - MozMeet] Note: there were 662 duplicate class definitions.
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$1: can't find superclass or interface com.facebook.android.Facebook$ServiceListener
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2: can't find superclass or interface com.facebook.Session$StatusCallback
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider$2$1: can't find superclass or interface com.facebook.Request$Callback
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class com.facebook.android.Facebook
[2014-07-15 23:57:43 - MozMeet] Warning: com.parse.FacebookAuthenticationProvider: can't find referenced class …Run Code Online (Sandbox Code Playgroud) 嗨:我已将我的应用程序提交到App Store.我的应用程序中有Facebook登录功能.当我尝试从设备登录Facebook时,我能够无缝地完成.然而,Apple拒绝了我的应用程序说"当我们点击Facebook图标进行注册时,我们将被带到移动Safari,我们会收到一条消息,指出:
不允许用户查看应用程序:不允许用户按开发人员集配置查看此应用程序.
不知道我怎么能重新创建这个问题.我在3个不同的设备上安装了我的应用程序,并且能够毫无错误地登录.我在Facebook的Facebook状态和评论部分检查了我的应用程序设置,我启用了我的普通公众.不确定我还缺少什么.我只是感到非常沮丧.有谁能帮我解决这个问题?我使用parse作为我的后端服务,并使用解析Facebook登录来记录用户.非常感谢你!
我在Parse上有一个云函数.当它被调用时,它会检索一个PFObject然后在该对象和用户之间添加关系.这部分工作正常(见功能结束).我无法获取选择PFObject忽略用户已经关联的查询的查询
这是我的代码:
Parse.Cloud.define("NextMedia", function (request, response) {
var LikeRequest = Parse.Object.extend("LikeRequest");
var query = new Parse.Query(LikeRequest);
query.equalTo("completed", false);
console.log("user: " + Parse.User.current().id);
query.notEqualTo("user", Parse.User.current());
// Also only fetch if never been sent before
// HERE SHOULD USE THE BELOW RELATIONSHIP
var innerQuery = new Parse.Query(Parse.User);
innerQuery.exists(Parse.User);
query.matchesQuery("sentTo", innerQuery);
query.ascending("createdAt");
query.first({
success: function (object) {
// Successfully retrieved the object.
console.log("Got 1 object: " + object.get('mediaId'));
// Record that the user has been sent it …Run Code Online (Sandbox Code Playgroud) 我最近将我的一个测试iphone升级到iOS 8,然后升级了PUSH注册码,如下所示(使用xCode 6)
-(BOOL)hasNotificationsEnabled {
NSString *iOSversion = [[UIDevice currentDevice] systemVersion];
NSString *prefix = [[iOSversion componentsSeparatedByString:@"."] firstObject];
float versionVal = [prefix floatValue];
if (versionVal >= 8)
{
NSLog(@"%@", [[UIApplication sharedApplication] currentUserNotificationSettings]);
//The output of this log shows that the app is registered for PUSH so should receive them
if ([[UIApplication sharedApplication] currentUserNotificationSettings].types != UIUserNotificationTypeNone) {
return YES;
}
}
else
{
UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if (types != UIRemoteNotificationTypeNone){
return YES;
}
}
return NO;
}
-(void)registerForPUSHNotifications { …Run Code Online (Sandbox Code Playgroud) 在我的云代码中,我想用新数据更新我的所有记录,大约是50k.但我注意到即使我遵循1000条记录限制,我的工作仍然失败.我得到成功/错误没有被称为错误的这项工作.任何想法如何解决这个问题?
Parse.Cloud.job("hello", function(request, response) {
Parse.Cloud.useMasterKey();
var results = [];
var limit = 1000;
var saveUpdatedQueries = function(queries) {
console.log("updating records " + queries.length);
Parse.Object.saveAll(queries,{
success:function(lists){
console.log("lists ok "+lists.length);
if (!results.length) {
response.success("finished");
return;
}
updatingRecords(lists.length);
},error: function(reason){
console.log("error");
}
});
}
var updatingRecords = function(skip) {
var tempRecords = [];
if (skip) {
results = results.slice(skip);
}
console.log("skip: " + skip + " Results length: "+ results.length);
for (var i = 0; i < results.length; i++) { …Run Code Online (Sandbox Code Playgroud)