Some queries and apparent bugs

12 views
Skip to first unread message

alekhine

unread,
Mar 13, 2012, 9:56:52 AM3/13/12
to cocoafi...@googlegroups.com

I have following questions:
 
1. How to check if any user is logged in?

2. Is there any way to know what are the channels to which current user/device is subscribed?

3.  Encountered following error while adding  user1 as friend of user2
Received {
  "meta": {
    "status": "fail",
    "code": 500,
    "message": "Internal server error. The Cocoafish Team has just been notified of this problem."
  }
}

When adding friends feature will start working?

4.  Created channels and subscribed users to channels but no push notification gets delivered.  I get following response from server. Is this the expected response?

Received {
  "meta": {
    "status": "ok",
    "code": 200,
    "method_name": "Notify"
  }
}

5. Error in documentation:
In the Show friends section of documents(iOS), following snippet is given to handle the response

NSArray *friendRequests = [response getObjectsOfType:[CCFriendRequest class]];
    for (CCFriendRequest *request in friendRequests)
    {
        ;
    }

But XCode complains : use of undeclared identifier CCFriendRequest, did you mean friendRequests? Replacing CCFriendRequest with friendRequests does not solve the problem either.  What is correct replacement for CCFriendRequest?


Thanks,
Amol

Wei Kong

unread,
Mar 14, 2012, 4:28:25 PM3/14/12
to cocoafi...@googlegroups.com
Hi Alekhine,
March 13, 2012 6:56 AM

I have following questions:
 
1. How to check if any user is logged in?

users/show/me.json will return success if a user is logged in.


2. Is there any way to know what are the channels to which current user/device is subscribed?

We will add that method shortly.


3.  Encountered following error while adding  user1 as friend of user2
Received {
  "meta": {
    "status": "fail",
    "code": 500,
    "message": "Internal server error. The Cocoafish Team has just been notified of this problem."
  }
}

When adding friends feature will start working?
Looking into it.


4.  Created channels and subscribed users to channels but no push notification gets delivered.  I get following response from server. Is this the expected response?

Received {
  "meta": {
    "status": "ok",
    "code": 200,
    "method_name": "Notify"
  }
}

Did you upload your ios certificate?

5. Error in documentation:
In the Show friends section of documents(iOS), following snippet is given to handle the response

NSArray *friendRequests = [response getObjectsOfType:[CCFriendRequest class]];
    for (CCFriendRequest *request in friendRequests)
    {
        ;
    }

But XCode complains : use of undeclared identifier CCFriendRequest, did you mean friendRequests? Replacing CCFriendRequest with friendRequests does not solve the problem either.  What is correct replacement for CCFriendRequest?


I will take a look and get back to you on this soon.

Thanks,
Wei
Thanks,
Amol


alekhine

unread,
Mar 15, 2012, 6:18:28 AM3/15/12
to Cocoafish Users
Hi Wei,

Thanks for the answers.

On the part of not receiving push notification, I have uploaded iOS
push notification certificate. If certificate is not uploaded I will
expect a response from server stating that, but response from server
seems OK.



On Mar 15, 1:28 am, Wei Kong <w...@cocoafish.com> wrote:
> Hi Alekhine,
>
> > alekhine <mailto:amolsubhe...@gmail.com>

Wei Kong

unread,
Mar 15, 2012, 7:21:11 PM3/15/12
to cocoafi...@googlegroups.com
Is it working now?

March 15, 2012 3:18 AM
Hi Wei,

Thanks for the answers.

On the part of not receiving push notification, I have uploaded iOS
push notification certificate. If certificate is not uploaded I will
expect a response from server stating that, but response from server
seems OK.


March 14, 2012 1:28 PM
Hi Alekhine,
March 13, 2012 6:56 AM

I have following questions:
 
1. How to check if any user is logged in?

2. Is there any way to know what are the channels to which current user/device is subscribed?

3.  Encountered following error while adding  user1 as friend of user2
Received {
  "meta": {
    "status": "fail",
    "code": 500,
    "message": "Internal server error. The Cocoafish Team has just been notified of this problem."
  }
}

When adding friends feature will start working?

4.  Created channels and subscribed users to channels but no push notification gets delivered.  I get following response from server. Is this the expected response?

Received {
  "meta": {
    "status": "ok",
    "code": 200,
    "method_name": "Notify"
  }
}

5. Error in documentation:
In the Show friends section of documents(iOS), following snippet is given to handle the response

NSArray *friendRequests = [response getObjectsOfType:[CCFriendRequest class]];
    for (CCFriendRequest *request in friendRequests)
    {
        ;
    }

But XCode complains : use of undeclared identifier CCFriendRequest, did you mean friendRequests? Replacing CCFriendRequest with friendRequests does not solve the problem either.  What is correct replacement for CCFriendRequest?


Thanks,
Amol

alekhine

unread,
Mar 16, 2012, 10:53:25 AM3/16/12
to Cocoafish Users
Not working yet.

On Mar 16, 4:21 am, Wei Kong <w...@cocoafish.com> wrote:
> Is it working now?
>
>
>
>
>
>
>
> > alekhine <mailto:amolsubhe...@gmail.com>
> > March 15, 2012 3:18 AM
> > Hi Wei,
>
> > Thanks for the answers.
>
> > On the part of not receiving push notification, I have uploaded iOS
> > push notification certificate. If certificate is not uploaded I will
> > expect a response from server stating that, but response from server
> > seems OK.
>
> > Wei Kong <mailto:w...@cocoafish.com>
> > March 14, 2012 1:28 PM
> > Hi Alekhine,
> >> alekhine <mailto:amolsubhe...@gmail.com>
> > alekhine <mailto:amolsubhe...@gmail.com>

Wei Kong

unread,
Mar 16, 2012, 1:07:04 PM3/16/12
to cocoafi...@googlegroups.com
I see in the logs push messages were sent to the apple apn servers. It could happen a wrong or mismatched certificate (production vs development). Did you generate the push certificate under the same provision profile you install on your phone?



March 16, 2012 7:53 AM
Not working yet.
March 15, 2012 4:21 PM
Is it working now?

March 15, 2012 3:18 AM
Hi Wei,

Thanks for the answers.

On the part of not receiving push notification, I have uploaded iOS
push notification certificate. If certificate is not uploaded I will
expect a response from server stating that, but response from server
seems OK.


March 14, 2012 1:28 PM
Hi Alekhine,
March 13, 2012 6:56 AM
Reply all
Reply to author
Forward
0 new messages