Giter Site home page Giter Site logo

ionic-team / legacy-ionic-cloud Goto Github PK

View Code? Open in Web Editor NEW
65.0 13.0 26.0 1.51 MB

JavaScript Client for legacy Ionic Cloud services. See Ionic Pro for our new take on the ionic development lifecycle

License: Apache License 2.0

JavaScript 13.51% TypeScript 86.49%

legacy-ionic-cloud's Introduction

NOTE: Ionic Cloud is evolving into Ionic Pro and this client is deprecated. See the Migration Guide for more info.

Ionic Cloud Client

The client for using the Ionic Cloud (powerful user & social authentication, native push notifications, live deploys, etc.) in your app. Check out our documentation.

Coming from ionic-platform-web-client? Things have changed! See our migration guide.

Issues

  • For bugs and issues with this library specifically, feel free to post a github issue here.
  • For issues with the Ionic API and/or the services, file a ticket here.

Local Development

See the CONTRIBUTING.md file.

legacy-ionic-cloud's People

Contributors

ericb avatar fuiste avatar imhoffd avatar jaceromri avatar mlynch avatar morellan avatar nphyatt avatar olivercodes avatar perrygovier avatar techwizeric avatar tlancina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

legacy-ionic-cloud's Issues

Login with facebook bad signature for signed_request

{
   "error": {
      "message": "Bad signature",
      "type": "OAuthException",
      "code": 1,
      "fbtrace_id": "Ecdf72tE+/g"
   }
}

Is ionic signing the facebook token before it is returned back?

This is what I'm expecting when I type this in the browser, https://graph.facebook.com/me?access_token=[token gotten from ionic cloud login with facebook service]

{
   "name": "Open Graph Test User",
   "id": "xxx"
}

Platform info

Cordova CLI: 6.3.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: Not installed
ios-sim version: 5.0.8 
OS: Mac OS X Yosemite
Node Version: v0.12.7
Xcode version: Xcode 6.4 Build version 6E35b 

Mock Cloud Services

@astik says in https://github.com/driftyco/ionic-platform-web-client/issues/105:

It would be great to have a way to mock ionic.io angular service ($ionicAuth, $ionicUser, $ionicDeploy) like we do with $http and $httpBackend. Even simple configurable decorator would be perfect =)

On a longer shot, we may also dream of a $ionicPush mock that would use a dummy backend that can simulate sending push notification.

This won't be tackled right away, but it's good to talk about. Most of the cloud client has been switched over to use dependency injection, which makes mocking actually possible now.

  • Look into mocking angular 1 services with Angular 2 in mind.
  • Everything should now be using the client, so it may be possible to do this by simply mocking that. (but it does not use $http, because it needs to work without angular)

Anything else to add, @astik?

Ionic Deploy: Offer some way to develop and test functionality in the browser / using `ionic serve`

@piotrowski said in https://github.com/driftyco/ionic-platform-web-client/issues/25:

It would be awesome if Ionic Deploy actually 'worked' while developing your app: Checking for updates, receiving answers that an update is available or not available, actually pseudo-downloading some file would be great to develop the UI used to represent Deploy in my app.

Right now it only says Ionic Deploy: Checking for updatesin the console, but no request is sent out and nothing happens. I have no way to see what my UI looks like, if the callbacks actually work.

Of course there are some limitations, as e.g. of course it shouldn't really update the app - but this could be handled by some console.log calls to make the user aware of it. Also some helper methods that set "update available on next try" or "no update available on next try" you can implement as debug buttons would complete the feature set. Maybe this could be some kind of "mock" that is automatically used on local development, I don't know the best way to achieve this.

What do you think?

is typing signal in ionic-cloud exist?

Hi, I see that you have typing api in this version. I am just wondering if this will be implemented in the push chat/message function.

Can you please write a little documentation how to implement this? I want this. Thanks.

Facebook social login only relaying a bare minimum of values

Following issue #20, which is awesome to have, it would be preferable to have more of the Core fields which should be returned by the Facebook API and available to the Ionic backend. For the particular app that I'm working on now, first_name and last_name would be helpful; we want to display profile pages for users where we refer to them by their first names. Splitting the full_name isn't really reliable for this as some users have two first names, and for others the first/last names in full_name are in reverse order. There are also several other Core fields which I could imagine might be useful to some.

Push not working in Production mode

From @aetchegoyen on July 1, 2016 21:3

Type: bug

Ionic Version: 1.x

Platform: ios 9 webview

As for now, I've already:

  • Created both Development and Distribution certs from scratch from Apple Developer Portal
  • Reloaded the certs in my machine using Xcode (and fixing signing issues from xcode)
  • Exported the .p12 certs and uploaded them to ionic.io platform
  • Set my app push config to production mode (just in case) and dev_push = false.
  • Built using --release from terminal
  • Built using Xcode and selecting Release build in build options

And I've tried:

  • Sending push with APNS-Tool using the production certs and it works.
  • Sending push from ionic.io using production profile and it doesn't work.
  • Sending push using ionic.io API using production profile and it doesn't work.
  • Sending push using ionic.io and ionic.io API using development profile and it works.

Copied from original issue: ionic-team/ionic-framework#7162

ReferenceError: Promise is not defined.

$ionicAuth.login('basic', detail, option).then(success, failure);

It gets me that promise is not defined when I test the app on real device. On browser, I didn't find this error.

Handle a notifications - Push not emitting inside my App

Hi,
My app was Ionic version 1 and the notifications worked well, I followed all the migration steps, and it works only when the app is closed/background.

My app is Ionic 1, I updated to the latest CLI 2.0.0, delete all references to the ionic-platform-web-client.

I place the listener to the 'cloud:push:notification'

$scope.$on('cloud:push:notification', function(event, data) {
    var msg = data.message;
    alert(msg.title + ': ' + msg.text);
 });

Use this different method to handle the notification on my controller, or where I have to put this method ?:

$ionicEventEmitter.on('push:notification', function(data) {
     console.log(data.message);
});

I removed the ionic cloud and the phonegap-plugin-push and I installed them again (ionic cloud 0.9.0).

After trying all this my problem persists, does anyone have any solution?

Ionic Package for iOS build: "Missing 64-bit support..."

Ionic Package for iOS build completes successfully, but when I upload the IPA through Application Loader I am receiving the error:
ERROR ITMS-90086: "Missing 64-bit support. iOS apps...blah, blah, blah
We recommend using the default "Standard Architectures" build setting for Architectures in Xcode blah, blah, blah

I haven't seen this issue before, so not sure if there is a config.xml setting I need or if it's Ionic Package.

Ionic Package - Adding Custom file into iOS workspace for cordova plugin

Short description of the problem:

I am testing the implementation of this plugin for firebase notifications, which works perfectly for android
https://github.com/guyromb/cordova-plugin-fcm-plus

Since I don't have a Mac, I am relying on the power of Ionic Package to create all my .ipa files. But one of the requirements of this plugin is to put the GoogleService-Info.plist inside the platform folder
And with Ionic Package am getting this error over here

Fetching plugin "https://github.com/guyromb/cordova-plugin-fcm-plus" via git clone
Repository "https://github.com/guyromb/cordova-plugin-fcm-plus" checked out to git ref "master".
Installing "cordova-plugin-fcm" for ios
Failed to install 'cordova-plugin-fcm':CordovaError: Uh oh!
cannot find "/Users/package/workspace/apps-b86d9bac-25/cordova/GoogleService-Info.plist" ios <resource-file>
    at handlers.resource-file.install (/Users/package/workspace/apps-b86d9bac-25/cordova/platforms/ios/cordova/lib/plugman/pluginHandlers.js:53:48)
    at Object.ActionStack.process (/Users/package/workspace/apps-b86d9bac-25/cordova/platforms/ios/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
    at Plugman.addPlugin (/Users/package/workspace/apps-b86d9bac-25/cordova/platforms/ios/cordova/lib/plugman/Plugman.js:82:20)
    at Api.addPlugin (/Users/package/workspace/apps-b86d9bac-25/cordova/platforms/ios/cordova/Api.js:187:53)
    at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:605:6)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:403:28
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49
Error: Uh oh!
cannot find "/Users/package/workspace/apps-b86d9bac-25/cordova/GoogleService-Info.plist" ios <resource-file>

What behavior are you expecting?

Being able to put the GoogleService-Info.plist file somewhere so it is picked up during the ionic package build process

Which Ionic Cloud Service?
Ionic Package

System information
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
OS: Distributor ID: LinuxMint Description: Linux Mint 17.3 Rosa
Node Version: v6.6.0

Push.register() has wrong return signature

Both the documentation and TypeScript intellisense states that Push.register() returns a Promise<PushToken> but the actually returned data is (at least on ios):

{
  token: string,
  registered: boolean
}

While the definition ofPushToken is:

{
      app_id: string,
      invalidated: date-time,
      token: string,
      created: date-time,
      valid: boolean,
      id: string,
      type: string
}

Push.saveToken() returns Promise<PushToken> as it's stated.

This is an easy fix, but I don't know if you want to introduce a new type for this, or just return with a explicit object signature like Promise<{ token: string, registered: boolean }>

User Password reset issues

@sagivf says in ionic-team/ionic-cloud-angular#3:

In order to use user.resetPassword you need to have a loaded user.
To have a loaded user you need to log him in which beats the purpose.

I thought User.load('user-id’) would do the trick,
but -

  1. This also beats the point as you don't have the user-id if your not logged in.
  2. Tried hard coding it and User.load('user-id’) doesn't work, I get a 401 (missing token). (Perhaps this deserves it's own issue).

What am I missing? Is "reset password" different then "forgot password"?
If so what use case is it good for? Is there a plan to add "forgot password" functionality?

Failure while building the project environment

Ionic Package
Android builds were working ok yesterday (8/18).

Now I'm receiving this error right away for Android builds:
"Failure while building the project environment"
That is all the error contains

iOS builds are working though.

Tests in fail after upgrade to ionic-cloud 'TypeError: undefined is not an object (evaluating 'this.config.settings.logger')

After upgrading to version 2.0 of the Ionic CLI and moving to ionic-cloud, my jasmine tests run in phantomJS and Chrome fail due to the following error message:

PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
  TypeError: undefined is not an object (evaluating 'this.config.settings.logger')
  at www/lib/ionic.cloud.js:1206

I've narrowed down the issue to when i add ionic.cloud.js into karma.conf.js file as a source. The project is an Ionic 1 project. Beginning to think that I shouldn't have upgraded to version 2 of the CLI in the first place and gone down this road...

Am I missing something some setup here or is this a bug?

Your system information:

Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: 1.8.4 
ios-sim version: 3.1.1 
OS: Mac OS X El Capitan
Node Version: v4.4.3
Xcode version: Xcode 7.3.1 Build version 7D1014 

Not detecting Cordova using Ionic Deploy

From @Manduro on June 28, 2016 23:19

Ionic Deploy requires cordova.js to be removed from index.html, as it gets added with the right path on start. This has always worked fine until recently.

Now, Ionic does not detect the app as being run in cordova anymore. Instead it is tagged as the mobileweb platform. This causes calls to cordova plugins to often fail, as the platform.ready() is launched on domready instead of deviceready.

When I re-add cordova.js to index.html, all is fine again.

It seems to be happening since [email protected]. It could also be an issue with https://github.com/driftyco/ionic-cloud

Ionic Version: 2.x

Platform: iOS (Android untested)

Run ionic info from terminal/cmd prompt:

Cordova CLI: 6.2.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: 1.8.6 
ios-sim version: 5.0.8 
OS: Mac OS X El Capitan
Node Version: v0.12.7
Xcode version: Xcode 7.3 Build version 7D175 

Copied from original issue: ionic-team/ionic-framework#7108

Dev Push

@sagivf says in ionic-team/ionic-cloud-angular#2:

Digging trough the code It looks like dev_push has been removed,
8906ae3

I'm assuming I am seeing this because i am using the bleeding edge? am I correct? If this effects other users I would strongly recommend updating the docs.

I also have to mention I liked the dev_push feature. Although it does add some complication and is error prone, I think it fits nicely with Ionics philosophy of embracing the web.
It allows you to check your code/app while still in the browser which is I big plus despite the disadvantages.

I think the problem was more to do with the terminology "limited_push", should have been something along the lines of "Browser Push" and with the no need to switch a configuration (would have been better for the framework to decided by it's self if it's running in the browser.)

Happy to hear your thoughts :)

Package error for android build: "A problem occurred configuring root project 'android'."

You have been opted out of telemetry. To change this, run: cordova telemetry on.
ANDROID_HOME=/usr/local/src/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 2.873 secs
Error:
Error code 1 for command: /home/package/workspace/apps-fed6e0ae-302/cordova/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/package/workspace/apps-fed6e0ae-302/cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

Error logging in with Ionic CLI

I cant upload my build using the cli command "ionic upload" anymore.
I've uninstalled/reinstalled both cordova and ionic.

Console output:
Error logging in
Email or Password incorrect. Please visit https://apps.ionic.io for help. (CLI v1.7.16)
Your system information:
Cordova CLI: 6.3.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
OS:
Node Version: v4.4.1

Changing user data

I'm implementing a change details form for the apps users an a am a little confused.
Doing this.user.set('name', 'new-name') and then performing this.user.save() seems weird.
If this fails for any reason (validation, network), the user is now kept in the app in an incorrect form.
I don't really see the value in this, looks to me like the user details should be changed only once the change is successful, or at least have a revert option.
Am I missing something here?

Social Login Not Working After Deployment Update

The new social stuff is AMAZING and works well...until I deploy an update. Steps to reproduce:

Login to either Facebook or Twitter Successfully
Check for Updates
Download Update
Extract Update
Logout
Try to click Facebook of Twitter Login again
-- OR --
Completely terminate app on the device and relaunch and click on Facebook or Twitter Login

Here's how I logout a user (notice how I'm clearing the cache)

$scope.LogoutUser = function() {
            console.log("Logging Out User");

            $timeout(function () {
                $ionicAuth.logout();
                $ionicHistory.clearCache();
                $ionicHistory.clearHistory();
                $scope.LoggedIn = false;
                $state.go("signin", { "ActionName": "LoggedOut"});

            },300)

        }

Here's my code for the update (perhaps that's where the problem occurs?)

$scope.hasUpdate = false;
    $scope.NoUpdates = false;

    var deploy = $ionicDeploy;

    // Check Ionic Deploy for new code
    $scope.checkForUpdates = function () {

        $ionicLoading.show({ template: 'Checking for Updates...', delay: 400 });

        $scope.NoUpdates = false;
        console.log('Ionic Deploy: Checking for updates');
        deploy.check().then(function (hasUpdate) {
            console.log('Ionic Deploy: Update available: ' + hasUpdate);
            if(hasUpdate) {
                $timeout(function(){
                    $ionicLoading.hide();
                    $scope.NoUpdates = false;
                },2000);
                $scope.doUpdate();
            }
            else {
                console.log("No Updates Available");
                $timeout(function(){
                    $ionicLoading.hide();
                    $scope.NoUpdates = true;
                },2000);

            }

        }, function (err) {
            console.error('Ionic Deploy: Unable to check for updates', err);
            $timeout(function(){
                $ionicLoading.hide();
            },2000);
        });
    }

    // Update app code with new release from Ionic Deploy
    $scope.doUpdate = function () {

        $ionicLoading.show({ template: 'Downloading Updates...', delay: 400 });
        console.log("Starting Update...");
        deploy.download().then(function (res) {
            console.log('Ionic Deploy: Download Success! ', res);

            $timeout(function(){
                $ionicLoading.hide();
            },2000);
            $scope.doExtract();

        }, function (err) {
            $timeout(function(){
                $ionicLoading.hide();
            },2000);
            console.log('Ionic Deploy: Update error! ', err);
        }, function (prog) {
            $timeout(function(){
                $ionicLoading.hide();
            },2000);
            console.log('Ionic Deploy: Progress... ', prog);
        });
    };

    // Extract the Code so it will be updated on the App next time its launched
    $scope.doExtract = function () {
        console.log("Starting Extraction...");

        $ionicLoading.show({ template: 'Applying Updates...', delay: 400 });
        deploy.extract().then(function (res) {
            console.log('Ionic Deploy: Extraction Success! ', res);
            $timeout(function(){
                $ionicLoading.hide();
            },2000);
        }, function (err) {
            console.log('Ionic Deploy: Extraction error! ', err);
            $timeout(function(){
                $ionicLoading.hide();
            },2000);
        }, function (prog) {
            console.log('Ionic Deploy: Extraction Progress... ', prog);
            $timeout(function(){
                $ionicLoading.hide();
            },2000);
        });
    };

and here's the login for FB (the twitter one is the same thing, just with "Twitter" in it)

$scope.FacebookLogin = function () {
        $ionicAuth.login('facebook').then(function (_info) {

            $ionicUser.details.username = $ionicUser.social.facebook.data.full_name;
            $ionicUser.details.email = $ionicUser.social.facebook.data.email;
            $ionicUser.details.image = $ionicUser.social.facebook.data.raw_data.picture.data.url;
            $ionicUser.save();

            $scope.loginSuccess();
        }, function () {
            $scope.signupFailure(_info);
        });
    };

Facebook does not give me any errors of any kind on the console or network side, but Twitter does have that damn missing cordova browser thing coming up again.

Any thoughts?

Angular 1/Ionic 1 Feedback

I'm asking for feedback on the Angular 1/Ionic 1 support in the Ionic Cloud client, particularly the new config setup. Using this library is recommended for Ionic 1 projects, and will be the future of what once was the ionic-platform-web-client. For usage, see the readme for now. Also see the Migration Guide to see how to port existing ionic-platform-web-client code to the new cloud client.

  1. What did you like?
  2. What did you dislike/what could be improved?
  3. Anything else?

Handle a notification

Hello, what is the best way to handle a notification with 'ionic-cloud' ? Before we used to pass a onNotification method during $ionicPush.init() but know that only debug and pluginConfig is available i don't know how to handle the incoming notifications.

Thanks

Password reset issues

Tried using both strategies with some problems. wasn't able to receive an email.

  1. Using the hosted form with InAppBrowser and auth.passwordResetUrl , got a 500 with an existing user.
    image

  2. Using mu own password reset form.

  • with a valid email:
    image
  • using a non existent email:
    It gets a success. If we are trying to prevent email fishing. Is that the case or should this have returns an error.

image

Documentation mess

There is a mess in documentation on http://docs.ionic.io/docs/ for push service no ionic cloud is meshed and half of documentation steps are not correct.
If you are trying to implement push service at this moment from ionic push documentation it is mission impossible.

Push Targeting Dashboard UI improvements

Although there is no bug and you should use details.email and not custom.email,
this is very confusing.

Also I would add a spinner when searching (can also be confusion)

Using custom.email

image

Using details.email

image

Social login not "remembering" user credentials

After login out and in - you have re login to Facebook every time.

When I used http://ionicframework.com/docs/v2/native/facebook/ in a different app, it remembered the user credentials when login into Facebook, and the user doesn't have to go trough the login again (lots of users doesn't remember their credentials).

Not sure this can be achieved in the current constellation, maybe through some sort of api integration with the app developer.

payload on push notification

Hi, can you show us how to go to state on push receive?

This is how I call it in php, but how to handle it in the app?


        $data = array(
                          'emails' => $email, 
                          'profile' => 'testing',
                          'notification' => array('message' => $msg, 'payload' => array('$state' => $stating, '$stateParams' => $statingParam))
                          );


Camera plugin not working in ionic View app

Hey guys! I'm loving ionic-cloud thus far, but one issue that I ran into today was that the Camera plugin doesn't seem to work inside of the IonicView app. Though I feel like I may be doing something wrong...

Camera.getPicture(options).then((img) => { // do cool stuff }, 
(err) => { console.log('There was an error: ' + JSON.stringify(err)); });

Whenever I'm in the IonicView app the error handler gets executed and all I see is: "There was an error: {}"

If I generate an actual apk and install that on my phone it works like a charm. Am I missing something? I'm using ionic2 Beta8 and the latest version of the ionicView app.

Thanks so much for your time!

availability through bower

Will you provide ionic-cloud through bower at some point? Since ionic-cloud explicitly supports angular 1 and a lot of angular1/ionic1 apps rely on bower for managing dependencies, I think it would make a lot of sense.

Social provider - no way of knowing if login or signup

When I use a social provider there is no way to know if the user has just signed up for the first time or logged in. There should be some parameter in the callback/promise informing this.

I could create two separate views but:
a) Bad UX
b) The user might have signed up in the past and there is no easy way of telling.

Push unregister fails in browser

Calling unregister in a browser throws an error, whereas register just fails silently. A silent fail (maybe with a console.log saying the plugin is unavailable) is preferable, to support testing in a browser.

The iOS emulator fails with the same error, as it does not support push.

Cannot read property 'token' of null at Push.unregister (push.js:168)

User Authorization header not sent on refresh

I am currently developing in the browser.
After login-in everything works fine and I am able to save user data.

this.user.set('firstName', this.settings.firstName);
this.user.save()

But after I refresh the browser it fails - I get a 401. it seems like the Authorization header isn't being sent. I do see the token exists in the local storage.
Should I be taking some sort of action when the app starts?

$ionicUser is not defined

Dear the team,

I tried the migration guide, but not too far I step in, I got the error message.

ionicAuth is not defined
ionicUser is not defined

Storing the user after authentication

Ionic.Auth will store my authentication if I tell it to (remember == true), which seems to work fine.

The actual user is not stored unless I manually run user.save() afterwards.
If I reload the app without calling user.save() it leads to a scenario where user.isAuthenticated() returns true at the same time as user.isAnonymous(), which is a bit confusing.

$ionicAuth.requestPasswordReset(email) 500 error. Cloud Services

I'm calling $ionicAuth.requestPasswordReset(email); and I keep getting:

{"meta": {"version": "2.0.0-beta.0", "status": 500, "request_id": "xyz"}, "error": {"message": "500: Internal Server Error", "link": null, "type": "InternalServerError"}}

The rest of the user system works, even using the hosted forms results in the same error.

Should this feature work? Is it a configuration issue on my side.

Bug or bad karma?

Hello guys.
Sorry to bother.

Yesterday i was testing the Ionic push notification on both ios and android - with production certificate (all properly setup).

It wasn't working. I wasn't receiving any notification.

The Send push - from inside ionic.io dashboard - was working. I was receiving successfully the notifications on both ios and android.

But the cURL request wasn't working at all, both through my API or through Postman.

I had also opened a SO question:

https://stackoverflow.com/questions/39575790/ionic-push-notification-not-receiving-in-ios

But today magically everything works fine..
Without any change in the code whatsoever..

Do you know what could be the reason?
There has been some update in ionic cloud or was just an unlucky day yesterday?

Custom login with wrong credentials flow

where should i received 401 errors from the server when invalid credentials.

return $ionicAuth.login('custom', userInfo , {'remember': userInfo.remember , 'inAppBrowserOptions': {'hidden': true}})
                .then( function(response){

                    return response;
                })
                .catch(function(error){
                    console.log(error);
                });

if the credentials are ok it work

push notifications status returns null

Hi,

I'm struggling to get the push notifications to work on iOS. While on Android it works just fine.
I've been getting ILLEGAL_CREDENTIAL_FORMAT errors which were due to me not setting up correctly the profiles.

However at some point I succeeded to get the right configuration as I was getting APNS_DEVICE_TOKEN_NOT_FOR_TOPIC;

After some other attempts I got: APNS_BAD_DEVICE_TOKEN

After that whatever the configuration I try, I get an empty push notification status.
Below an example where I send a push notification to only one iOS device and the answer I get.

Request

data:
   app_id: "c04b033e"
   config:
     tokens:
        0:"3ed0b038d9a185a9f6d6f18420a3be21f55b4311c05a078fbf7a96969ad8c264"
   created:"2016-09-01T11:04:53.607264+00:00"
   state: "enqueued"
   status: "open"
   uuid: "1bfa66ac-2ee1-4d2a-b0c0-2ec16084a188"

meta:
  request_id: "5d3442d6-8197-4ab9-aab7-7c3c4175d8d0"
  status: 201
  version: "2.0.0-beta.0"

Answer

{
    "data": [],
    "meta": {
        "request_id": "932d420f-40b6-4a8c-bdd8-6ed904f5c21e",
        "status"    : 200,
        "version"   : "2.0.0-beta.0"
    }
}

Any idea why I don't get any status anymore while I do send the push ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.