This is a migrated thread and some comments may be shown as answers.

Creating data from frontend to send to backend

7 Answers 211 Views
JavaScript SDK
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marcel
Top achievements
Rank 1
Marcel asked on 27 Apr 2016, 04:15 AM
Hello I believe I contacted you all once before to get an understanding why I cant send data to my backend from the frontend and the pictures I have attached gives an explanation of what might be going on int he app. 

thank you  

ps. I cant send reset password to emails anymore, is it any issues with the email templates?

7 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 28 Apr 2016, 03:29 PM

Hi Marcel,

From the attached images the code looks OK.

You can change these lines in the "else" statement:

Angry_Act.Post($scope.arpostData).then(function(data) {
            $scope.$apply();
            if (data.result) {
                $scope.postmodal.hide();
            } else {
                $ionicPopup.alert({
                    title: data.code,
                    template: data.message
                });
            }

in order to be able to see the error message returned from the server.

Also, if you are using user authorization in your app, please make sure that there is only one Everlive instance (you call new Everlive(); only once inside your app). Otherwise the login details (the access token) will be stored in one Everlive instance and you will make request with another instance - thus the POST request will be sent without an access token which will result in error from the server. This might be the reason for the resetPassword function not to work as well.

Please check the returned error from the server and let me know if you need more help.


Regards,
Martin
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
0
Marcel
Top achievements
Rank 1
answered on 28 Apr 2016, 09:56 PM

Hello Martin,

I looked in email templates and i dont see any reset password templates or etc.

 

thank you 

0
Marcel
Top achievements
Rank 1
answered on 29 Apr 2016, 03:55 AM
All of the registered, welcome. reset password templates arent available.
0
Dimitar Dimitrov
Telerik team
answered on 29 Apr 2016, 10:19 AM
Hello Marcel,

How did you create the Backend Services project - Is your application a duplicate of another or freshly created new one? The Automated Emails always have 4 default email templates for the Users Management and either they were deleted or not present at the time of creation of your app. Would you please share your AppId in order to check our logs and see if there was a problem with the email templates.

Looking forward to your reply.

Regards,
Dimitar Dimitrov
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
0
Marcel
Top achievements
Rank 1
answered on 29 Apr 2016, 02:29 PM

hello, 

the backend service i just enabled when i created the hybrid app template but it proves me wit kendo ui which i dont want to use so i delete all the folders and continue with my application i uploaded 

0
Marcel
Top achievements
Rank 1
answered on 29 Apr 2016, 02:31 PM
its happening everytime i upload my an existing app
0
Martin
Telerik team
answered on 04 May 2016, 01:48 PM

Hi Marcel,

I am sorry to hear you are experiencing such strange behavior with automated email templates.

I tried to reproduce the described behavior but without success. Could you please describe the exact steps that lead to email template disappearing so that we can reproduce them?

Are the automated email templates available before editing/importing the code base in the app?

Optionally, you can record a video and attach it here.

I am looking forward to your reply.


Regards,
Martin
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
JavaScript SDK
Asked by
Marcel
Top achievements
Rank 1
Answers by
Martin
Telerik team
Marcel
Top achievements
Rank 1
Dimitar Dimitrov
Telerik team
Share this question
or